Sounds like you don't have the "right" jar.   Either Tomcat has an older one
then Xindice needs or java does or it isn't there at all.

Since the class isn't found, then that means that all of the jars that java has
and all the jars that tomcat has don't have your class.   So, while I am trying
to explain how to figure this out, it occurred to me that I know where the
file is.   There is a utility called JWhich.java that if you run it:

java JWhich javax.xml.transform.TransformerException

it will find the class in your classpath.   What do you do if you it isn't in
your
classpath?   Simplest way is to build a class path with every jar you have
and then run JWhich against it.   That will tell you which jar you need.   Turns

out that my dbXML/Xindice environment runs, so it is in my classpath, so
your problem is that jaxp.jar isn't in a classpath that tomcat is using!
Tomcat
has some directory to drop in third-party jars and it will automatically add the
jars
to it.   I don't know the name of the directory, but put the JAXP.jar in it :-).

HTH,

Mark

Irene Van Winkel wrote:

> Hello,
>
> I tried to do the Addressbook example as well, and got almost the same
> error. When I add an address, and submit the data, I get an error page, but
> the address information is put in the database. When I search, and the name
> doesn't exist, there is no problem, but when the name exists, I get an
> error. So I can access the database, write to the database, but the data
> can't find its way back to the browser.
>
> This is the errormessage I get:
>
> Exception
> javax.servlet.ServletException: Servlet execution threw an exception
>   --lots of errors--
>
> Root cause
> java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException
>   --lots of errors--
>
> Does this mean a servlet couldn't be executed because I'm missing a class?
> I'm just starting with JAVA, JSP and Servlets, can somebody point me out
> where to look? I think the rest of the errormessages where the same as
> Jane's.
>
> Thanks,
>
> Irene
>
> -----Original Message-----
> From: Jane Riese [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 15, 2002 3:29 AM
> To: [email protected]
> Subject: Tomcat4.02 and Addressbook example
>
> I downloaded Xindice yesterday and Tomcat4.02 and have been trying to
> get the Addressbook example to work. The index page appears, but when
> I try to list contacts ( I placed the address docs in the database
> collection /db/addressbook using
> the command-line tool) I get the error listed below. I also cannot add a
> contact.
> I thought I faithfully followed all the steps in the README.
>
> I have this working on earlier
> versions of dbXML and tomcat3.2.
>
> Has anyone run into this error? Are there any steps I am forgetting
> to allow Tomcat to find Xindice - in some config file or some corba
> setup?
>
> Thanks for your help.
>
> Jane Riese
>
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server Error)
> that prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: Invoker service() exception
> at
> org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
> :504)
> at
> org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1012)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
> )
> at java.lang.Thread.run(Thread.java:484)
> root cause
> java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
> ader.java:1631)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
> a:926)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1360)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1243)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at Addressbook.Group.addResults(Group.java:130)
> at Addressbook.ListContacts.list(ListContacts.java:101)
> at Addressbook.Task.doPost(Task.java:126)
> at Addressbook.Task.doGet(Task.java:191)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
> :446)
> at
> org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1012)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
> )
> at java.lang.Thread.run(Thread.java:484)

Reply via email to