Lars,
What JNDI name are you using - "comp/env/cxwHibernate" as indicated in =
the exception? Shouldn't that be "java:comp/env/cxwHibernate"?
Anyway, Spring's JndiObjectFactoryBean doesn't do anything magical: By =
default, it just looks up the JNDI name, prepending "java:comp/env/" if =
not already contained in the name. The latter prepending can be turned =
off by setting the "inContainer" property to false.
Try looking up the JNDI resource manually in some servlet or JSP (via =
"new InitialContext().lookup(name)"), using the same name as specified =
for JndiObjectFactoryBean. If you can make it work there, it should work =
with JndiObjectFactoryBean too.
Juergen
-----Original Message-----
From: Lars Fischer [mailto:lar...@gm...]
Sent: Monday, August 18, 2003 5:54 PM
To: spr...@li...
Subject: [Springframework-developer] Problem with DataSource and WLS 8.1
Hi all,
I have a problem with a DataSource definition in applicationContext.xml.
I've defined a connection pool and a data source with WebLogic 8.1 but=20
at deployment time Spring says:
18.08.2003 17.42 Uhr CEST> <Warning> <HTTP> <BEA-101162> <User defined
listener com.interface21.web.context.ContextLoaderListener failed:
com.interface21.context.ApplicationContextException: Cannot load =
configuration: problem
instantiating or initializing beans; nested exception is:
com.interface21.beans.FatalBeanException: afterPropertiesSet on =
with
name 'cwxDataSource' threw an exception; nested exception is:
javax.naming.NameNotFoundException: While trying to look up
comp/env/cxwHibernate in /app/webapp/springapp/22589165.; remaining name
'comp/env/cxwHibernate'.>
This may be a WebLogic issue but I can't find any good BEA documentation =
for
this issue.
Does anyone have experience configuring WebLogic JNDI with Spring ?
Thanks
Lars
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/=
01
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|