[
https://issues.apache.org/jira/browse/GERONIMO-6554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15733665#comment-15733665
]
Eduardo edited comment on GERONIMO-6554 at 12/8/16 11:04 PM:
-------------------------------------------------------------
I'm not sure if Geronimo came with Jersey, anyway Geronimo use Osgi, so
classloading is not likely a problem here. I'm doing REST with Restlet
library, which I found very easy to use. If you have access to the Geronimo
console, you should select "Advanced", and then select Resources/repository.
There you will have a way to install the desired .jar.
After you install it, you must find it in the following list at that page, and
clicking on it will show you how you can tell your app. to find the library in
the application server (runtime), by using the file I described in previous
post. In dev time, you just create the user library (assuming you are working
with eclipse), and tell the app to not include it with your .EAR or .WAR app.
If you are doing OSGi applications, you may need to add it to the MANIFEST.MF
file, and add the library to eclipse as well (this procedure is out of the
scope of this post), it may not be your case.
Hope this information helps you to solve your problem!!
was (Author: edugarcia):
I'm not sure if Geronimo came with Jersey. I'm doing REST with Restlet
library, which I found very easy to use. If you have access to the Geronimo
console, you should select "Advanced", and then select Resources/repository.
There you will have a way to install the desired .jar.
After you install it, you must find it in the following list at that page, and
clicking on it will show you how you can tell your app. to find the library in
the application server (runtime), by using the file I described in previous
post. In dev time, you just create the user library (assuming you are working
with eclipse), and tell the app to not include it with your .EAR or .WAR app.
If you are doing OSGi applications, you may need to add it to the MANIFEST.MF
file, and add the library to eclipse as well (this procedure is out of the
scope of this post), it may not be your case.
Hope this information helps you to solve your problem!!
> War file deployment
> --------------------
>
> Key: GERONIMO-6554
> URL: https://issues.apache.org/jira/browse/GERONIMO-6554
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 3.0.1
> Environment: Windows 10 , Intel core -i74700MQ
> Reporter: Priyank
> Labels: windows
>
> We are using jersey framework for the restful web services. When I am trying
> to deploy a War file it gives an error as mentioned below :
> 2016-07-21 02:27:41,496 ERROR [DeploymentPortlet] The application was not
> deployed.
> javax/ws/rs/core/Configurable
> java.lang.NoClassDefFoundError: javax/ws/rs/core/Configurable
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
> at
> org.apache.geronimo.wink.deployment.WinkModuleBuilderExtension.initContext(WinkModuleBuilderExtension.java:180)
> at
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.postInitContext(TomcatModuleBuilder.java:449)
> at
> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.initContext(AbstractWebModuleBuilder.java:437)
> at
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:168)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:686)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:281)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:145)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
> at
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> at
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.ClassNotFoundException: javax.ws.rs.core.Configurable
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> at
> org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ... 51 more
> the library is present in war file.
> Lib name : javax.ws.rs-api-2.0.1.jar
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)