You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Juan Antonio Herraiz <xi...@hotmail.com> on 2002/07/08 20:56:07 UTC

not run xindice with jsp why?

Hello, i have problems with xindice integrated in a JSP page.
The jsp file is attached, and the error is:

java.lang.NoClassDefFoundError
        at 
org.apache.xindice.client.xmldb.CollectionImpl.(CollectionImpl.java:105)
        at 
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:214)
        at 
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
        at 
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
        at 
portal._0002fportal_0002fejemplo_0002ejspejemplo_jsp_46._jspService(_0002fportal_0002fejemplo_0002ejspejemplo_jsp_46.java:155)
        at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
        at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


I don't know I have to do! I don't understand why recognise the other 
classes and not
the CollectionImpl! Is There any problem with CLASSPATH?

I want to access to a local Xindice BD, so I don't use "localhost:4080", I 
use "xmldb:xindice:///db"
I have to configure some conf file of xindice??

(my english is bad :) )

Thanks




_________________________________________________________________
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com

Re: not run xindice with jsp why?

Posted by Jeff Smith <el...@yahoo.com>.
I think it recognizes CollectionImpl, but can't find a
class inside of CollectionImpl.  Look at line 105 in
CollectionImpl.java.  Is that class in your server's
CLASSPATH?

--- Juan Antonio Herraiz <xi...@hotmail.com> wrote:
> Hello, i have problems with xindice integrated in a
> JSP page.
> The jsp file is attached, and the error is:
> 
> java.lang.NoClassDefFoundError
>         at 
>
org.apache.xindice.client.xmldb.CollectionImpl.(CollectionImpl.java:105)
>         at 
>
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:214)
>         at 
>
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
>         at 
>
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
>         at 
>
portal._0002fportal_0002fejemplo_0002ejspejemplo_jsp_46._jspService(_0002fportal_0002fejemplo_0002ejspejemplo_jsp_46.java:155)
>         at 
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at 
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
>         at 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>         at
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at 
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at
>
org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at 
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at 
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>         at 
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at 
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at 
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at 
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> 
> I don't know I have to do! I don't understand why
> recognise the other 
> classes and not
> the CollectionImpl! Is There any problem with
> CLASSPATH?
> 
> I want to access to a local Xindice BD, so I don't
> use "localhost:4080", I 
> use "xmldb:xindice:///db"
> I have to configure some conf file of xindice??
> 
> (my english is bad :) )
> 
> Thanks
> 
> 
> 
> 
>
_________________________________________________________________
> Charle con sus amigos online usando MSN Messenger:
> http://messenger.msn.com
> 

> ATTACHMENT part 2 application/octet-stream
name=Example.jsp



__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com