Hi All,
When trying to deprecate service classes/methods i got exception in
[1]. (When added @Deprecated tag).
I also found a discussion related to this in carbon-dev in [2].
According [2] this exception occurs due to not shipping "JSR 311 API"
with our distribution.
Any plans on shipping "JSR 311 API" libraries with our distribution ?
Without this we cannot have "@Deprecated" tag in service classes or
within methods in service classes.
OR else is there workaround to resolve this ?
Thanks
AmilaJ
[1]
012-02-20 06:17:53,525] ERROR
{org.wso2.carbon.utils.deployment.Axis2ServiceRegistry} - Error
building service from bundle : Symbolic Name:
org.wso2.carbon.core.services,Bundle Version: 4.0.0.SNAPSHOT, ID: 97
java.lang.NoClassDefFoundError: javax/ws/rs/Produces
at org.apache.axis2.jaxrs.JAXRSUtils.getClassModel(JAXRSUtils.java:53)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:272)
at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:468)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:389)
at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
at
org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:215)
at
org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:105)
at
org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:91)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:431)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:257)
at
org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: javax.ws.rs.Produces
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 14 more
[2] http://wso2.org/mailarchive/carbon-dev/2009-November/037774.html
--
Mobile : +94773330538
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev