users@glassfish.java.net

JBI Deployment error - WsgenTool class not found

From: Ian de Beer <Ian.De-Beer_at_Sun.COM>
Date: Wed, 27 Jan 2010 10:13:33 +0200

Hi
We are attempting to deploy a JBI Composite application to a clustered JCAPS instance, but we get the attached exception, The guys at the open-esb forum refers me to this mailing list, as the error occurs within Glassfish.
We do deploy via the admin console and not Netbeans. We do have the webservices-tool.jar in the appserver/lib directory of both the DAS and the Cluster instances. The jar does contain the required WsgenTool class. Why can't we deploy?
Regards
Ian

#|2010-01-25T14:03:45.041+0200|WARNING|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteRequest|_ThreadID=45;_ThreadName=httpWorkerThread-44848-0;_RequestID=cc9e8ede-c024-48d0-8293-0408016d66f2;|PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

[#|2010-01-25T14:05:30.074+0200|INFO|sun-appserver2.1|com.sun.jbi.management|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|Deploying service assembly caPhase1 to target jbijc6Cluster.|#]

[#|2010-01-25T14:05:30.414+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|
Retrieving document at 'file:/jcaps6/JavaCAPS6U2/appserver/domains/domain1/jbi/components/sun-javaee-engine/install_root/workspace/exploded/META-INF/wsdl/ChecksumCalculator/checksumCalculator.wsdl'.|#]

[#|2010-01-25T14:05:30.420+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|
Retrieving schema at 'checksum.xsd', relative to 'file:/jcaps6/JavaCAPS6U2/appserver/domains/domain1/jbi/components/sun-javaee-engine/install_root/workspace/exploded/META-INF/wsdl/ChecksumCalculator/checksumCalculator.wsdl'.|#]

[#|2010-01-25T14:05:30.426+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|
Retrieving document at 'file:/jcaps6/JavaCAPS6U2/appserver/domains/domain1/jbi/components/sun-javaee-engine/install_root/workspace/exploded/checksumCalculator.wsdl'.|#]

[#|2010-01-25T14:05:30.431+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|
Retrieving schema at 'checksum.xsd', relative to 'file:/jcaps6/JavaCAPS6U2/appserver/domains/domain1/jbi/components/sun-javaee-engine/install_root/workspace/exploded/checksumCalculator.wsdl'.|#]

[#|2010-01-25T14:05:30.435+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;|
BaseDir = /jcaps6/JavaCAPS6U2/appserver/domains/domain1/jbi/components/sun-javaee-engine/install_root/workspace/exploded, Converted WSDLs = []|#]

[#|2010-01-25T14:05:30.683+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=46;_ThreadName=Thread-165905;_RequestID=eeb5f501-bbd6-499f-b1fd-b53d14a5bd99;|Exception occured in J2EEC Phase
java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsgenTool
        at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:60)
        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:427)
        at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:141)
        at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
|#]

[#|2010-01-25T14:05:30.895+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=38;_ThreadName=httpWorkerThread-44848-2;_RequestID=2ad33595-071a-4164-93d7-3c678fa8fdcd;|JavaEEServiceEngineSUManager :: doDeploy(String,String,String,String) Status 0 message Deploying application in domain failed; com/sun/tools/ws/wscompile/WsgenTool
 
Exception null|#]

Begin forwarded message:

> From: Girish Patil <Girish.Patil_at_Sun.COM>
> Date: 25 January 2010 10:06:31 PM SAST
> To: users_at_open-esb.dev.java.net
> Subject: Re: JBI Deployment error - WsgenTool class not found
> Reply-To: users_at_open-esb.dev.java.net
>
> Since Exception is originating with GF deployer, posting to GF user mailing list may help.
>
> Ian de Beer wrote:
>>
>> Hi
>> We have configured JCAPS to use the 64-bit JDK instead of the JRE. The previous ClassNotFoundException for the AnnotationProcessFactory is no longer a problem. However, we now have a new ClassNotFoundException with missing class being com/sun/tools/ws/wscompile/WsgenTool.
>> The CASA builds and install without problem on my development environment, but when we try to deploy the Composite Application to the JCAPS Cluster, running on Solaris, we get the above exception.
>> We have added the following shared libraries to the JBI environment for both the DAS and the Cluster: sun-wsdl-library, sun-wsdl-ext-library and sun-encoder-library as per the document: Configuring Java CAPS JBI Components for Glassfish Clustering.
>> Attached is the full stacktrace.
>> Any suggestions?
>> Regards
>> Ian
>>
>> [#|2010-01-25T14:05:30.683+0200|SEVERE|sun-appserver2.1|javax.enterprise
>> .system.tools.deployment|_ThreadID=46;_ThreadName=Thread-165905;_Request
>> ID=eeb5f501-bbd6-499f-b1fd-b53d14a5bd99;|Exception occured in J2EEC
>> Phase
>>
>> java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsgenTool at
>> com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:60)
>> 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:427)
>> at
>> com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:141)
>> at
>> com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
>> at
>> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
>> at
>> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
>> at
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
>> at
>> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
>> at
>> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
>>
>> |#]
>> [#|2010-01-25T14:05:30.895+0200|SEVERE|sun-appserver2.1|javax.enterprise
>> .system.tools.deployment|_ThreadID=38;_ThreadName=httpWorkerThread-44848
>> -2;_RequestID=2ad33595-071a-4164-93d7-3c678fa8fdcd;|JavaEEServiceEngineS
>> UManager :: doDeploy(String,String,String,String) Status 0 message
>> Deploying application in domain failed;
>> com/sun/tools/ws/wscompile/WsgenTool
>>
>> Exception null|#]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_open-esb.dev.java.net
>> For additional commands, e-mail: users-help_at_open-esb.dev.java.net
>>
>>
>>