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!