You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Wolfgang Weigel <wg...@mathematik.uni-wuerzburg.de> on 2002/09/02 13:50:49 UTC
could not add record/mysql
hi!
i tried to change the example from
http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
everything works fine if using the name "personnel" for the
database-connection in the cocoon.xconf (<jdbc
logger="core.datasources.mysql" name="personnel">)
as soon as i modify the name-parameter (e.g. mysql) i get the following
exception:
Message
Could not add record
Source
org.apache.cocoon.ProcessingException
Description
org.apache.cocoon.ProcessingException: Could not add record:
org.apache.avalon.framework.component.ComponentException: datasources:
ComponentSelector could not find the component for hint: personnel
Does anybody have a solution?
bye
wolfgang
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: could not add record/mysql
Posted by Wolle <wg...@cip.physik.uni-wuerzburg.de>.
hi!
*Make sure you change the pool name not just in cocoon.xconf but anywhere
*you actually use the pool, like create-empl.xsp.
this was already done.
Then bounce your
*servlet container so Cocoon will reread cocoon.xconf.
what does that mean? i suggest restarting tomcat.
If you do those
*things and still have problems, stop Tomcat, delete the work directory
*for the cocoon webapp, and then restart it.
i tried. after a few hours i finally found the solution. i forgot to
modify the
following line in the sitemap:
<map:parameter
name="descriptor" value="context://mount/cpOfDb/docs/department-form.xml"/>
after changing everything worked fine.
Thanks a lot for the help!
wolfgang
*
*Regards,
*
*Lajos
*
*
*Wolfgang Weigel wrote:
*
*> hi!
*>
*> i tried to change the example from
*> http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
*> everything works fine if using the name "personnel" for the
*> database-connection in the cocoon.xconf (<jdbc
*> logger="core.datasources.mysql" name="personnel">)
*>
*> as soon as i modify the name-parameter (e.g. mysql) i get the following
*> exception:
*>
*> Message
*>
*> Could not add record
*>
*>
*> Source
*>
*> org.apache.cocoon.ProcessingException
*>
*>
*> Description
*>
*> org.apache.cocoon.ProcessingException: Could not add record:
*> org.apache.avalon.framework.component.ComponentException: datasources:
*> ComponentSelector could not find the component for hint: personnel
*>
*>
*> Does anybody have a solution?
*>
*>
*> bye
*>
*> wolfgang
*>
*>
*>
*> ---------------------------------------------------------------------
*> Please check that your question has not already been answered in the
*> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
*>
*> To unsubscribe, e-mail: <co...@xml.apache.org>
*> For additional commands, e-mail: <co...@xml.apache.org>
*>
*>
*
*
*--
*galatea.com
*Cocoon training, consulting & support
*
*
*
*---------------------------------------------------------------------
*Please check that your question has not already been answered in the
*FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
*
*To unsubscribe, e-mail: <co...@xml.apache.org>
*For additional commands, e-mail: <co...@xml.apache.org>
*
Auf bald
Wolfgang Weigel
_____________________________________________________________________
Wolfgang Weigel
Universitaet Wuerzburg
Didaktik Mathematik
Am Hubland
97074 Wuerzburg
wgweigel@cip.physik.uni-wuerzburg.de
office: 0931/888-5078
_ __ ____ __ ______
| | /| / /__ / / /__ _ _____ ____ / / ___ _______ / / / /
| |/ |/ / _ \/ / / -_) | |/|/ / _ `(_-< / _ \/ -_) __/ -_) /_/_/_/
|__/|__/\___/_/_/\__/ |__,__/\_,_/___/ /_//_/\__/_/ \__/ (_|_|_)
---------------------------------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: could not add record/mysql
Posted by Lajos Moczar <lm...@galatea.com>.
Wolfgang -
Make sure you change the pool name not just in cocoon.xconf but anywhere
you actually use the pool, like create-empl.xsp. Then bounce your
servlet container so Cocoon will reread cocoon.xconf. If you do those
things and still have problems, stop Tomcat, delete the work directory
for the cocoon webapp, and then restart it.
Regards,
Lajos
Wolfgang Weigel wrote:
> hi!
>
> i tried to change the example from
> http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
> everything works fine if using the name "personnel" for the
> database-connection in the cocoon.xconf (<jdbc
> logger="core.datasources.mysql" name="personnel">)
>
> as soon as i modify the name-parameter (e.g. mysql) i get the following
> exception:
>
> Message
>
> Could not add record
>
>
> Source
>
> org.apache.cocoon.ProcessingException
>
>
> Description
>
> org.apache.cocoon.ProcessingException: Could not add record:
> org.apache.avalon.framework.component.ComponentException: datasources:
> ComponentSelector could not find the component for hint: personnel
>
>
> Does anybody have a solution?
>
>
> bye
>
> wolfgang
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
--
galatea.com
Cocoon training, consulting & support
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>