In the above shrene code,

I have set the configuration properities correctly i.e.. external/config in
jboss-service.xml which indeed to be configured in xbean.xml of
lw-container.

gnodet wrote:
> 
> What did you do ?
> 
> On Feb 1, 2008 1:45 PM, sachin2008 <[EMAIL PROTECTED]> wrote:
>>
>> Now it is working fine.
>>
>> Thanks,
>> Praveen.
>>
>>
>> gnodet wrote:
>> >
>> > I think some of the problem comes from the fact that some threads may
>> > not be correctly
>> > associated with the JNDI context (because they are not started by
>> > jboss itself).  In such
>> > cases, JNDI lookups would fail.
>> >
>> > I don't think the problem comes from the location of your properties
>> > file because another
>> > kind of exception would be thrown saying that the file can not be
>> found.
>> >
>> > The only workaround I know currently is to do the lookup when the
>> > application is started
>> > and store it in a singleton so that you can retrieve it at a later
>> > time.  I'm sure there are
>> > clean solutions to this problem though....
>> >
>> > On Jan 28, 2008 10:43 AM, Sherene <[EMAIL PROTECTED]> wrote:
>> >>
>> >> hi
>> >>
>> >> i am using a jsr component in which i am reading a parameter which is
>> >> from a
>> >> properties file.
>> >> I have attached the jsr xbean.xml and the properties files
>> >>
>> >> Note: i have placed the fscontext and providerutil jar in
>> >> jboss/server/lib
>> >> folder.
>> >>
>> >> when i deploy the jar in jboss 4.0.5 GA, i am getting the following
>> >> error.
>> >>
>> >>
>> >>
>> >> Caused by: org.springframework.beans.factory.BeanCreationException:
>> Error
>> >> creating bean with name 'propertyPlaceholder' defined in file
>> [D:\Program
>> >>
>> Files\jboss-4.0.5.GA\server\default\data\ServiceMix\service-assemblies\Config-SA\version_1\sus\servicemix-jsr181\Config-JSR-SU\xbean.xml]:
>> >> Cannot create inner bean
>> >> 'org.springframework.core.io.FileSystemResource#129b073' while setting
>> >> bean
>> >> property 'location'; nested exception is
>> >> org.springframework.beans.factory.BeanCreationException: Error
>> creating
>> >> bean
>> >> with name 'org.springframework.core.io.FileSystemResource#129b073'
>> >> defined
>> >> in file [D:\Program
>> >>
>> Files\jboss-4.0.5.GA\server\default\data\ServiceMix\service-assemblies\Config-SA\version_1\sus\servicemix-jsr181\Config-JSR-SU\xbean.xml]:
>> >> Cannot create inner bean
>> >> 'org.springframework.jndi.JndiObjectFactoryBean#538b31' while setting
>> >> constructor argument; nested exception is
>> >> org.springframework.beans.factory.BeanCreationException: Error
>> creating
>> >> bean
>> >> with name 'org.springframework.jndi.JndiObjectFactoryBean#538b31'
>> defined
>> >> in
>> >> file [D:\Program
>> >>
>> Files\jboss-4.0.5.GA\server\default\data\ServiceMix\service-assemblies\Config-SA\version_1\sus\servicemix-jsr181\Config-JSR-SU\xbean.xml]:
>> >> Invocation of init method failed; nested exception is
>> >> javax.naming.NameNotFoundException: external not bound
>> >>         at
>> >>
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:207)
>> >>         at
>> >>
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111)
>> >> http://www.nabble.com/file/p15131610/xbean.xml xbean.xml
>> >> http://www.nabble.com/file/p15131610/general.properties
>> >> general.properties
>> >> http://www.nabble.com/file/p15131610/ExampleService.java
>> >> ExampleService.java
>> >> http://www.nabble.com/file/p15131610/jboss-service.xml
>> jboss-service.xml
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Error-creating-bean-with-name-propertyPlaceholder-tp15131610s12049p15131610.html
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> > ------------------------
>> > Blog: http://gnodet.blogspot.com/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-creating-bean-with-name-propertyPlaceholder-tp15131610s12049p15225945.html
>>
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-creating-bean-with-name-propertyPlaceholder-tp15131610s12049p15261817.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to