P P B Bhatia

Greenhorn
+ Follow
since Feb 05, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by P P B Bhatia

What caused java.lang.UnsatisfiedLinkError: SQLConnect exception when trying to use DB2 Datasource to connect from WSAD to DB2 database? I have db2java.zip in server classpath but NO DB2 client installed on my locally.

Caused by: java.lang.UnsatisfiedLinkError: SQLConnect
at COM.ibm.db2.jdbc.app.DB2Connection.connect(DB2Connection.java:529)
at COM.ibm.db2.jdbc.app.DB2Connection.(DB2Connection.java:445)
at COM.ibm.db2.jdbc.app.DB2ReusableConnection.(DB2ReusableConnection.java:77)
at COM.ibm.db2.jdbc.DB2PooledConnection.getConnection(DB2PooledConnection.java:188)
at com.ibm.ejs.cm.portability.PortabilityLayerImpl.getInstance(PortabilityLayerImpl.java:996)
at com.ibm.ejs.cm.portability.DB2PortabilityLayer.getInstance(DB2PortabilityLayer.java:200)
at com.ibm.ejs.cm.portability.PortabilityLayerFactory.getPortabilityLayer(PortabilityLayerFactory.java:72)
at com.ibm.ejs.cm.JDBC1PhaseRF.createConnectionFactory(JDBC1PhaseRF.java:57)
at com.ibm.ejs.cm.DataSourceImpl$3.run(DataSourceImpl.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getSource(DataSourceImpl.java:235)
at com.ibm.ejs.cm.DataSourceImpl$1.run(DataSourceImpl.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:151)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:120)
17 years ago
Hi,

An exception is being thrown by WSAD 5.1.2 when it tries to start my application EAR. The EAR contains an EJB module and WEB component. I am new to WSAD so would appreciate help on the resolution of this.

[05/02/07 13:50:42:109 CET] 3c669663 EJBContainerI E WSVR0062E: Unable to start EJB, SUCHE_EAR#suche-ejb.jar#SucheComponent: java.lang.NullPointerException
at com.ibm.ejs.container.HomeOfHomes.create(HomeOfHomes.java:100)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1355)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:1012)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:934)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913)
at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1301)
at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:1034)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1508)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[05/02/07 13:50:42:188 CET] 3c669663 EJBContainerI I WSVR0041I: Stopping EJB jar: suche-ejb.jar
[05/02/07 13:50:42:203 CET] 3c669663 EJBContainerI E WSVR0042E: Unable to stop SUCHE_EAR#suche-ejb.jar#SucheComponent: unknown bean home name - SUCHE_EAR#suche-ejb.jar#SucheComponent
[05/02/07 13:50:42:234 CET] 3c669663 EJBContainerI I WSVR0043E: Unbind failed for comp/env/ejb/Suche/SucheComponent: name = comp/env/ejb/Suche/SucheComponent: first name component of comp/env/ejb/Suche is not found. Original exception : org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0


I seem to have set up my ejb-jar.xml and ibm-ejb-jar.xmi correctly.

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">;
<ejb-jar id="ejb-jar_ID">
<display-name>suche-ejb</display-name>
<enterprise-beans>
<session id="SucheComponent">
<ejb-name>SucheComponent</ejb-name>
<home>ServerSucheComponentHome</home>
<remote>ServerSucheComponent</remote>
<ejb-class>ServerSucheComponentBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref id="ResourceRef_1077011609178">
<description></description>
<res-ref-name>jdbc/SucheDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
</enterprise-beans>
</ejb-jar>

-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<ejbbnd:EJBJarBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbbnd="ejbbnd.xmi" xmlns:ejb="ejb.xmi" xmi:id="EJBJarBinding_1076950023292">
<ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
<ejbBindings xmi:id="EnterpriseBeanBinding_1076950116847" jndiName="comp/env/ejb/Suche/SucheComponent">
<enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#PlzsucheComponent"/>
<resRefBindings xmi:id="ResourceRefBinding_1077011609178" jndiName="debla/jdbc/SucheDB">
<bindingResourceRef href="META-INF/ejb-jar.xml#ResourceRef_1077011609178"/>
</resRefBindings>
</ejbBindings>
</ejbbnd:EJBJarBinding>

Please help.

Thanks!
17 years ago