users@glassfish.java.net

Glassfish cannot find some inner classes

From: Stefan Schilling <mail.suse_at_gmx.de>
Date: Tue, 04 Mar 2008 12:01:40 +0100

Hello!

I'm running Sun Java System Application Server 9.1_01 (build b09d-fcs) here on a JRE 1.6.0_03-b05.

I tried to deploy a number of beans that are using the SAP JCO connector. The beans look good in eclipse and -as long as I do not import / use the com.sap.mw.jco.JCO.Exception class- I can deploy the beans without any trouble.
But once I enable usage of com.sap.mw.jco.JCO.Exception, deployment fails for a java.lang.NoClassDefFoundError.
Meanwhile, it still loads a number of other imported classes, such as:
- com.sap.mw.jco.JCO
- com.sap.mw.jco.JCO.Client
- com.sap.mw.jco.JCO.Pool

I don't really understand the problem; the com.sap.mw.jco.JCO.Exception is included in the sapjco.jar provided to glassfish as com.sap.mw.jco.JCO$Exception.

Here's the stacktrace created by glassfish:

[#|2008-03-04T11:52:39.381+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=50;_ThreadName=Thread-130;_RequestID=8ed10eef-a25f-481d-b6a0-de444cc031fa;|Exception occured in J2EEC Phase
java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Exception
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
 at java.lang.Class.privateGetPublicMethods(Class.java:2547)
 at java.lang.Class.getMethods(Class.java:1410)
 at com.sun.xml.ws.model.RuntimeModeler.determineWebMethodUse(RuntimeModeler.java:303)
 at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:319)
 at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:256)
 at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:218)
 at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
 at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:61)
 at com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:107)
 at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1845)
 at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2249)
 at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:424)
 at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:140)
 at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:179)
 at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
 at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
 at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
 at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
|#]

Thanks for your help and please let me know, if you need any other information regarding this problem.

Bye,
Stefan
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser