Hi all! I'm having some problems when deploying web application that contains web service. This is the problem: in my web service I need to call ejbs (session beans) so i can access database and call spring services. But it seams I'm doing something wrong. When i comment the code that calls for ServiceExecutor session bean, everything works ok meaning i can deploy my application.But then i can't call ejbs. I've checked the classpath and that's ok too (There is an ejb project that implements called session bean). Is this a bug or what?
I already posted this on "Metro and jaxb" forum, but maybe this is glassfish problem?
I'm using Glassfish v1.
Please help!
Thnx.
Here is the ws class:
@WebService(endpointInterface = "org.csapi.wsdl.parlayx.sms.notification.v2_2.service.SmsNotification")
public class SmsNotificationImpl implements SmsNotification {
Logger log = Logger.getLogger(this.getClass());
public void notifySmsReception(String correlator, SmsMessage message) {
logMessage(correlator, message);
try {
ServiceExecutor sl = EjbCache.instance().getServiceExceutorBean();
sl.invokeFeatureServices("cbnServiceImpl", "establishCall", new Object[] { message });
} catch (Exception e) {
log.error("SmsNotificationImpl::notifySmsReception::error");
log.error(SDKToolkit.OBJECTWRITER.print(e));
} catch (Throwable e) {
log.error("SmsNotificationImpl::notifySmsReception::error");
log.error(SDKToolkit.OBJECTWRITER.print(e));
}
}
private void logMessage(String correlator, SmsMessage message) {
log.debug("***************************");
log.debug("*** Receiving a message ***");
log.debug("Correlator: " + (correlator != null ? correlator : "NO CORRELATOR!!!!"));
log.debug("Sender : " + message.getSenderAddress());
log.debug("Receiver : " + message.getSmsServiceActivationNumber());
log.debug("Date : " + (message.getDateTime() != null ? message.getDateTime().toString() : "NO DATE!!!!"));
log.debug("Message : " + message.getMessage());
log.debug("***************************");
}
}
Here is the stack trace:
Exception occured in J2EEC Phase
java.lang.NoClassDefFoundError: hr/combis/proxy/util/ServiceExecutor
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at com.sun.xml.ws.modeler.RuntimeModeler.processMethod(RuntimeModeler.java:455)
at com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:355)
at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:251)
at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:633)
at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)
at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1820)
at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2089)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:328)
at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:332)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
[Message sent by forum member 'kicho' (kicho)]
http://forums.java.net/jive/thread.jspa?messageID=237795