Skip to Content
0
Former Member
Jul 28, 2007 at 06:16 AM

Getting error while deployment

12 Views

Hi ,

I reffered to the "Accessing EJB Using JNDI SAP Netweaver Application server ,Java EE 5"

I followed the steps as mentioned in the document and i could sucessfully access the EJB using JNDI from a standalone java program.

The two files were created while writing if for EJB 3.0 from Netweaver editor

a)BMCSoftwareBean .java

import javax.ejb.RemoteHome;

import javax.ejb.Stateless;

import java.rmi.RemoteException;

/**

  • @author Administrator

*

*/

@Stateless

public class BMCSoftwareBean implements BMCSoftwareRemote {

public String hello(String name) {

return "hello" + name;

}

}

b)

package com.bmc;

import javax.ejb.Remote;

/**

  • @author Administrator

*

*/

@Remote

public interface BMCSoftwareRemote {

public String hello(String name) ;.

}

This code worked fine.

Then i tried the

"Accessign EJB 2.x-style Home interfaces"

As mentioned in the doc

I added two new interfaces

a)BMCSoftware.java

b)BMCSoftwareHome.java

The code is as follows:

package com.bmc;

import java.rmi.RemoteException;

import javax.ejb.EJBObject;

public interface BMCSoftware extends EJBObject {

public String hello(String name) throws RemoteException;

}

b)BMCSoftwareHome .java

package com.bmc;

import java.rmi.RemoteException;

import javax.ejb.CreateException;

public interface BMCSoftwareHome {

public BMCSoftware create() throws CreateException,RemoteException;

}

Then i deployed the bean .i got the following error

Jul 27, 2007 8:16:16 PM [Path ] [Server 00 01_176953] (52) :Delivery finished

Jul 27, 2007 8:17:07 PM [Path ] [Server 00 01_176953] (52) :Observer 'Repository Deployment Observer' has been notified. Component:sap.com_BMCBeanEAR.

Jul 27, 2007 8:17:27 PM [Path ] [Server 00 01_176953] (52) :Observer 'Comp Vers Deployment Observer' has been notified. Component:sap.com_BMCBeanEAR.

Jul 27, 2007 8:17:47 PM [Path ] [Server 00 01_176953] (52) :+++++++ Deployment for item 'sap.com_BMCBeanEAR' finished with 'Delivered' for '621941' ms +++++++

Jul 27, 2007 8:17:47 PM [Path ] [Server 00 01_176953] (52) :Starting component with name 'BMCBeanEAR' and vendor 'sap.com'

Jul 27, 2007 8:17:47 PM [Path ] [Server 00 01_176953] (52) :Performing Java EE start operation for development component name: 'BMCBeanEAR', vendor: 'sap.com', location: 'localhost', version: '2007.07.27.20.04.08', software type: 'J2EE', dependencies: '[]'

Jul 27, 2007 8:21:46 PM [Info ] [Server 00 01_176953] (52) :Exception has been returned while the 'sap.com/BMCBeanEAR' was starting. Warning/Exception :

Error occurred while starting application sap.com/BMCBeanEAR and wait.

Reason: Clusterwide exception: server ID 17695350:com.sap.engine.services.deploy.container.DeploymentException: interface com.bmc.BMCSoftware is not visible from class loader

at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:877)

at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl.prepareStart(ContainerInterfaceImpl.java:420)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:211)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:393)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:418)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:318)

at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:533)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:230)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:374)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2955)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2885)

at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:2861)

at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:98)

at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)

at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:31)

at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)

at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessDeplItem(DefaultDeployPostProcessor.java:70)

What can be the problem here

Best Regards

Manoj