File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes WSDLPostProcessingException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSDLPostProcessingException" Watch "WSDLPostProcessingException" New topic
Author

WSDLPostProcessingException

vibeeshan kambli
Ranch Hand

Joined: Jan 22, 2003
Posts: 41
Hello,
I am trying to use J2ee application client and webservice together on Websphere server V7.
Here is what's happening , any help is greatly appreciated.

We have older application that uses J2ee application client to run batch.
This batch does several things but I recently integrated a jax-ws webservice cleint.
This webservice client invokes .Net webservice. I took the wsdl from .Net service
and generated proxy classes.
When I invoke this application with in RSA, it runs fine but when I run this batch application on unix server using shell script
I will get the following error

Caused by: java.lang.ClassNotFoundException: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 71 more

I have spcified com.ibm.jaxws.thinclient_7.0.0.jar in the classpath
I greatly appreciate your help. Thank you.
vibeeshan kambli
Ranch Hand

Joined: Jan 22, 2003
Posts: 41
Gurus,
Does any one have some idea about this exception, here is the complete StackTrace

WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ws.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:788)
at com.ibm.ws.client.applicationclient.launchClient.main(launchClient.java:493)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:981)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:340)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:110)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:246)
Caused by: java.lang.NoClassDefFoundError: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.ibm.ws.wspolicy.DefaultWSPolicyInternalFactory.createWSDLPostProcessorExtended(DefaultWSPolicyInternalFactory.java:88)
at com.ibm.ws.wspolicy.WSPolicyInternalFactory.createWSDLPostProcessorExtended(WSPolicyInternalFactory.java:182)
at com.ibm.ws.wspolicy.attachment.WSDLPostProcessorImpl.<clinit>(WSDLPostProcessorImpl.java:41)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:770)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at com.ibm.ws.webservices.utils.PluginUtils$1.run(PluginUtils.java:85)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ws.webservices.utils.PluginUtils.discoverExtensions(PluginUtils.java:81)
at com.ibm.ws.webservices.deployment.WSDLPostProcessorPluginMgr.discoverWSDLPostProcessorPlugins(WSDLPostProcessorPluginMgr.java:74)
at com.ibm.ws.webservices.deployment.WSDLPostProcessorPluginMgr.getInstance(WSDLPostProcessorPluginMgr.java:61)
at com.ibm.ws.websvcs.deployment.WASWSDLReaderConfigurator.configureReaderInstance(WASWSDLReaderConfigurator.java:55)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.getWSDLReader(WSDL4JWrapper.java:493)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.access$300(WSDL4JWrapper.java:77)
at org.apache.axis2.jaxws.util.WSDL4JWrapper$12.run(WSDL4JWrapper.java:724)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.loadDefinition(WSDL4JWrapper.java:722)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.getDefinition(WSDL4JWrapper.java:670)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstructor(WSDL4JWrapper.java:224)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.java:156)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.setupWsdlDefinition(ServiceDescriptionImpl.java:1071)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:237)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:160)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:133)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:79)
at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:76)
at org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegate.java:212)
at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:59)
at javax.xml.ws.Service.<init>(Service.java:67)
at org.tempuri.ReportServiceB.<init>(ReportServiceB.java:39)
at org.spc.document.inventory.webservice.consumer.DocumentInventoryServiceAdapter.getService(DocumentInventoryServiceAdapter.java:128)
at org.spc.document.inventory.webservice.consumer.DocumentInventoryServiceAdapter.getReportMetaDataByFilter(DocumentInventoryServiceAdapter.java:78)
at org.spc.reports.app.batch.GenerateReports.run(GenerateReports.java:134)
at org.spc.reports.app.batch.BatchLauncher.run(BatchLauncher.java:71)
at org.spc.reports.app.batch.BatchLauncher.main(BatchLauncher.java:31)
... 28 more
Caused by: java.lang.ClassNotFoundException: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 71 more
vibeeshan kambli
Ranch Hand

Joined: Jan 22, 2003
Posts: 41
Finally figured out a problem. I was using userid on a unix box to execute a batch job that does not permission to write a file.
What was happening was , when I use a JEE application client to execute a batch , websphere tries to expand EAR file , looks like default location it will use for expanding EAR file is websphere root directory. giving permissions to that directory solved the issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDLPostProcessingException