cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Johnston" <coc...@lojjic.net>
Subject Re: Flowscript error (ComponentSelector) for server app
Date Mon, 23 Jan 2006 21:01:34 GMT
> You suggest:
>
> "My guess now is that your datasource configuration from cocoon.xconf
> did  not get copied over to the server."
>
> That is strange; the rest of the application works fine -
> ie, data is pulled from the database using the same cocoon.xconf
> file to look up the mapping.  Its just the forms editing part
> that throws this error.

That is odd indeed.  I'm sorry I don't have any other ideas right now why
you're seeing this behavior.  Hopefully someone else on the list will be
able to help.


> Is there some way of checking this?
>
> Thanks.
>
>>>> cocoon@lojjic.net 2006/01/23 04:48 PM >>>
>
> Jason Johnston wrote:
>> Derek Hohls wrote:
>>
>>> I have an app that works fine on a development machine
>>> (Cocoon 2.1.5, WindowsXP, Tomcat 4.1.x, JDK 1.4.x)
>>>
>>> But when I upload it and try and run it on the server:
>>> (Cocoon 2.1.5, UNIX, Tomcat 4.1.x, JDK 1.4.x)
>>>
>>> I get the error:
>>>
>>> ERROR   (2006-01-23) 11:38.25:783   [sitemap.handled-errors]
>>> (/cocoon215/inddb/db/editUser.do) Thread-20/PipelineNode:
>>> "resource://org/apache/cocoon/components/flow/javascript/Database.js",
>>> line 33: uncaught JavaScript exception: at editUser
>>> (file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/inddb/script/user.js,
>>> Line 46)
>>> at
>>> (file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/inddb/script/user.js,
>>> Line 6)
>>> at
>>> (resource://org/apache/cocoon/components/flow/javascript/Database.js,
>>> Line 33):
>>> org.apache.avalon.framework.service.ServiceException: datasources:
>>> ComponentSelector could not find the component for hint [inddb] (key
>>> [inddb])
>>> (Key='org.apache.avalon.excalibur.datasource.DataSourceComponentSelector/inddb')
>>>
>>>
>>> How to interpret the "ComponentSelector could not find the component"
>>> error message - what is the software looking for??
>>
>>
>> This means it is trying to look up the Avalon component for that key,
>> and failing for some reason.  Key-to-component mappings are generally
>> defined in cocoon.xconf.
>>
>>>
>>> (I am also not sure where the :
>>> org/apache/cocoon/components/flow/javascript/Database.js
>>> file is located... its not under WEB-INF/classes/... ?)
>>
>>
>> Doing a quick search it looks like Database.js is part of the Petstore
>> sample block:
>> /src/blocks/petstore/trunk/java/org/apache/cocoon/components/flow/javascript/Database.js
>>
>>
>> Is your application perhaps relying on this file for some reason, but
>> the Petstore block didn't get built in the version on your server?
>
> Bah, nevermind that, of course the file is there if the error is
> occurring within it. ;-)
>
> My guess now is that your datasource configuration from cocoon.xconf did
> not get copied over to the server.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
> --
> This message is subject to the CSIR's copyright, terms and conditions and
> e-mail legal notice. Views expressed herein do not necessarily represent
> the
> views of the CSIR.
>
> CSIR E-mail Legal Notice
> http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html
>
> CSIR Copyright, Terms and Conditions
> http://mail.csir.co.za/CSIR_Copyright.html
>
> For electronic copies of the CSIR Copyright, Terms and Conditions and the
> CSIR
> Legal Notice send a blank message with REQUEST LEGAL in the subject line
> to
> HelpDesk@csir.co.za.
>
>
> This message has been scanned for viruses and dangerous content by
> MailScanner,
> and is believed to be clean.
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message