Re: HELP PLEASE: Error executing the example esql.xml on cocoon1.8.2

Поиск
Список
Период
Сортировка
От Nick Fankhauser
Тема Re: HELP PLEASE: Error executing the example esql.xml on cocoon1.8.2
Дата
Msg-id NEBBLAAHGLEEPCGOBHDGGEMFEBAA.nickf@ontko.com
обсуждение исходный текст
Ответ на HELP PLEASE: Error executing the example esql.xml on cocoon1.8.2  ("Ivan Manuel Andrade Muñoz"<iandrade75@hotmail.com>)
Список pgsql-jdbc
Ivan-

Although I am not very familiar with cocoon, I suspect that this message
indicates that /usr/local/jdbc7.1-1.2.jar is not in the classpath for the
process that is executing this application. The response I sent to your last
question tells how to create a symbolic link that will place the jdbc driver
in the classpath for Tomcat. You may need to do something similar for Cocoon
to make this work- look for a directory that contains jar files or classes &
create a similar symbolic link.

Another way to handle this would be to place the driver in CLASSPATH for
"www-data". I think "www-data" is the user that tomcat & cocoon runs as.

(Aunque no soy muy familiar con el Cocoon , sospecho que este mensaje indica
no es que /usr/local/jdbc7.1-1.2.jar es el classpath para el proceso que
está ejecutando este uso.  La respuesta que envié a su pregunta pasada dice
cómo crear un acoplamiento simbólico que coloque el driver del jdbc en el
classpath para Tomcat.  Usted puede necesitar hacer algo similar para que el
Cocoon haga que este trabajo busca un directorio que contenga archivos o
clases del tarro y crea un acoplamiento simbólico.

Otra manera de dirigir esto sería colocar el driver en CLASSPATH para los
"www-data".  Pienso que los "www-data" son el usuario a que el tomcat y el
capullo funciona como.)

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/





> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Ivan Manuel Andrade
> Muñoz
> Sent: Tuesday, December 18, 2001 3:05 PM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] HELP PLEASE: Error executing the example esql.xml on
> cocoon1.8.2
>
>
>
>
> I have installed:
> Red Hat 7.2
> Postgresql 7.1.3.
> JDK1.3
> JDBC: /usr/local/jdbc7.1-1.2.jar
> Cocoon1.8.2
> Tomcat3.2.3
>
> Now when I try to access my pages I get the following error message :
>
> When executing the example esql.xml of the cocoon 1.8.2 that is in
> /samples/sql/.
>
> Cocoon 1.8.2
> ------------------------------------------------------------------
> ------------------
> Error found handling the request.
> java.lang.RuntimeException: Error loading driver: org.postgresql.Driver
>       at
> _usr._local._jakarta._build._tomcat._webapps._cocoon._samples._sql
> ._esql.populateDocument(_esql.java:141)
>       at
> org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
>       at
> org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.
> java:527)
>       at org.apache.cocoon.Engine.handle(Engine.java:384)
>       at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>       at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>       at org.apache.tomcat.core.Handler.service(Handler.java:287)
>       at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>       at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:812)
>       at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>       at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:213)
>       at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>       at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>       at java.lang.Thread.run(Thread.java:484)
>
> ------------------------------------------------------------------
> -----------------
> Warning: this page has been dynamically generated.
> ------------------------------------------------------------------
> -----------------
>
> What he/she would have to make to make work this example?
> To add or to modify something in tomcat.properties or cocoon.properties or
> pg_hba.conf?
>
> >From already thank you for their help.
> Iván Andrade M.
> Punta Arenas.
> Chile.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Descargue GRATUITAMENTE MSN Explorer en
> http://explorer.yupimsn.com/intl.asp.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Andrew G. Hammond"
Дата:
Сообщение: Re: [SQL] HELP PLEASE: Error executing the example esql.xml on
Следующее
От: "Paul Wallace"
Дата:
Сообщение: pg_hba.conf configuration