Hi All,
          I'm having trouble moving from a working WAS 5.0 env to WAS
6.0.  First I had to change my sqlmapconfig so that it used
"jdbc/db2Connection" rather than "java:comp/jdbc/db2Connection" ....
which got me past my first problem, but now I keep getting NULL
Component MetaData whenever I try to create the DaoManager.(see stack
below).

Has anyone got a valid SqlMapConfig.xml ,  and instructions on how to
create the Datasource in WAS , that will work ok together (I've tried 2
different datasources so far, and both gave the same problem)

Thanks 
Paul.

STACK TRACE :-

Exception data follows:
java.lang.IllegalStateException: Null ComponentMetaData
        at
com.ibm.ejs.cm.DSFactoryImpl.verifyConfiguration(DSFactoryImpl.java:266)
        at
com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenc
eObjectFactory.getObjectInstance(DataSourceFactory.java:946)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:314)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpe
rs.java:874)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.
java:681)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextI
mpl.java:1937)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1792
)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707
)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:141
2)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
        at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
        at javax.naming.InitialContext.lookup(InitialContext.java:361)
        at
com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.initialize(Jnd
iDataSourceFactory.java:48)
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMap
ConfigParser.java:301)
        at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:11
2)
        at
com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:96)
        at
com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:93)
        at
com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:93)
        at
com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:63)
        at
com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:78)
        at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConf
igParser.java:69)
        at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapCli
entBuilder.java:78)
        at
com.ibatis.dao.engine.transaction.sqlmap.SqlMapDaoTransactionManager.con
figure(SqlMapDaoTransactionManager.java:52)
        at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseTransactionM
anager(XmlDaoManagerBuilder.java:193)
        at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.parseContext(XmlD
aoManagerBuilder.java:157)
        at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(X
mlDaoManagerBuilder.java:102)
        at
com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilde
r.java:59)
        at egl.writer.SQLWriter.<clinit>(SQLWriter.java:32)
        at egl.treetable.WebFacade.getNumberFailed(WebFacade.java:54)

_____________________________________________________________________
NOTE:  This email and any information contained within or attached in a 
separate file is confidential and intended solely for the Individual to whom it 
is addressed. The information or data included is solely for the purpose 
indicated or previously agreed. Any information or data included with this 
e-mail remains the property of Findel PLC and the recipient will refrain from 
utilising the information for any purpose other than that indicated and upon 
request will destroy the information and remove it from their records.  Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those of Findel PLC. If you are not the intended 
recipient, be advised that you have received this email in error and that any 
use, dissemination, forwarding, printing, or copying of this email is strictly 
prohibited. No warranties or assurances are made in relation to the safety and 
content of this e-mail and any attachments.  No liability is accepted for any 
consequences arising from it. Findel Plc reserves the right to monitor all 
e-mail communications through its internal and external networks.If you have 
received this email in error please notify our IT helpdesk on +44(0) 1254 303030

Reply via email to