Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5DFB9200BE8 for ; Fri, 9 Dec 2016 00:12:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5C941160B27; Thu, 8 Dec 2016 23:12:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7D6E5160B1F for ; Fri, 9 Dec 2016 00:12:04 +0100 (CET) Received: (qmail 98692 invoked by uid 500); 8 Dec 2016 23:11:58 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 98619 invoked by uid 99); 8 Dec 2016 23:11:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 23:11:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7C33E2C03DF for ; Thu, 8 Dec 2016 23:11:58 +0000 (UTC) Date: Thu, 8 Dec 2016 23:11:58 +0000 (UTC) From: "Eduardo (JIRA)" To: dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (GERONIMO-6554) War file deployment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Dec 2016 23:12:05 -0000 [ 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:11 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 (usually http://localhost:8080/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, 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!! > 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)