jpa - Starting wildfly 9 with eclipselink -
i switched glassfish wildfly 9 , use eclipselink since using before. added eclipselink.jar in c:\wildfly-9.0.2.final\modules\system\layers\base\org\eclipse\persistence\main
folder. , did following
added module.xml :
<resource-root path="eclipselink.jar"> <filter> <exclude path="javax/**" /> </filter>
in persistence.xml :
<provider>org.eclipse.persistence.jpa.persistenceprovider</provider>
error :
16:53:17,021 warn [org.jboss.modules] (serverservice thread pool -- 58) failed define class org.eclipse.persistence.jpa.rs.exceptions.jparsexceptionmapper in module "org.eclipse.persistence:main" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\wildfly-9.0.2.final\modules,c:\wildfly-9.0.2.final\modules\system\layers\base)): java.lang.linkageerror: failed link org/eclipse/persistence/jpa/rs/exceptions/jparsexceptionmapper (module "org.eclipse.persistence:main" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\wildfly-9.0.2.final\modules,c:\wildfly-9.0.2.final\modules\system\layers\base))) @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:437) @ org.jboss.modules.moduleclassloader.loadclasslocal(moduleclassloader.java:269) @ org.jboss.modules.moduleclassloader$1.loadclasslocal(moduleclassloader.java:77) @ org.jboss.modules.module.loadmoduleclass(module.java:560) @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:197) @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:455) @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:404) @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:385) @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:130) @ org.eclipse.persistence.jpa.rs.service.jparsapplication.<init>(jparsapplication.java:65) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ org.jboss.resteasy.core.constructorinjectorimpl.construct(constructorinjectorimpl.java:148) @ org.jboss.resteasy.spi.resteasyproviderfactory.createproviderinstance(resteasyproviderfactory.java:2211) @ org.jboss.resteasy.spi.resteasydeployment.createapplication(resteasydeployment.java:295) @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:236) @ org.jboss.resteasy.plugins.server.servlet.servletcontainerdispatcher.init(servletcontainerdispatcher.java:112) @ org.jboss.resteasy.plugins.server.servlet.httpservletdispatcher.init(httpservletdispatcher.java:36) @ io.undertow.servlet.core.lifecyleinterceptorinvocation.proceed(lifecyleinterceptorinvocation.java:117) @ org.wildfly.extension.undertow.security.runaslifecycleinterceptor.init(runaslifecycleinterceptor.java:78) @ io.undertow.servlet.core.lifecyleinterceptorinvocation.proceed(lifecyleinterceptorinvocation.java:103) @ io.undertow.servlet.core.managedservlet$defaultinstancestrategy.start(managedservlet.java:230) @ io.undertow.servlet.core.managedservlet.createservlet(managedservlet.java:131) @ io.undertow.servlet.core.deploymentmanagerimpl.start(deploymentmanagerimpl.java:511) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice.startcontext(undertowdeploymentservice.java:101) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice$1.run(undertowdeploymentservice.java:82) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) @ org.jboss.threads.jbossthread.run(jbossthread.java:320) caused by: java.lang.noclassdeffounderror: javax/ws/rs/ext/exceptionmapper @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:760) @ org.jboss.modules.moduleclassloader.dodefineorloadclass(moduleclassloader.java:353) @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:432) ... 33 more caused by: java.lang.classnotfoundexception: javax.ws.rs.ext.exceptionmapper [module "org.eclipse.persistence:main" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\wildfly-9.0.2.final\modules,c:\wildfly-9.0.2.final\modules\system\layers\base))] @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:205) @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:455) @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:404) @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:385) @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:130) ... 37 more 16:53:17,022 error [org.jboss.msc.service.fail] (serverservice thread pool -- 58) msc000001: failed start service jboss.undertow.deployment.default-server.default-host./csbasement: org.jboss.msc.service.startexception in service jboss.undertow.deployment.default-server.default-host./csbasement: java.lang.runtimeexception: failed construct public org.eclipse.persistence.jpa.rs.service.jparsapplication() @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice$1.run(undertowdeploymentservice.java:85) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) @ org.jboss.threads.jbossthread.run(jbossthread.java:320) caused by: java.lang.runtimeexception: failed construct public org.eclipse.persistence.jpa.rs.service.jparsapplication() @ org.jboss.resteasy.core.constructorinjectorimpl.construct(constructorinjectorimpl.java:160) @ org.jboss.resteasy.spi.resteasyproviderfactory.createproviderinstance(resteasyproviderfactory.java:2211) @ org.jboss.resteasy.spi.resteasydeployment.createapplication(resteasydeployment.java:295) @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:236) @ org.jboss.resteasy.plugins.server.servlet.servletcontainerdispatcher.init(servletcontainerdispatcher.java:112) @ org.jboss.resteasy.plugins.server.servlet.httpservletdispatcher.init(httpservletdispatcher.java:36) @ io.undertow.servlet.core.lifecyleinterceptorinvocation.proceed(lifecyleinterceptorinvocation.java:117) @ org.wildfly.extension.undertow.security.runaslifecycleinterceptor.init(runaslifecycleinterceptor.java:78) @ io.undertow.servlet.core.lifecyleinterceptorinvocation.proceed(lifecyleinterceptorinvocation.java:103) @ io.undertow.servlet.core.managedservlet$defaultinstancestrategy.start(managedservlet.java:230) @ io.undertow.servlet.core.managedservlet.createservlet(managedservlet.java:131) @ io.undertow.servlet.core.deploymentmanagerimpl.start(deploymentmanagerimpl.java:511) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice.startcontext(undertowdeploymentservice.java:101) @ org.wildfly.extension.undertow.deployment.undertowdeploymentservice$1.run(undertowdeploymentservice.java:82) ... 6 more caused by: java.lang.linkageerror: failed link org/eclipse/persistence/jpa/rs/exceptions/jparsexceptionmapper (module "org.eclipse.persistence:main" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\wildfly-9.0.2.final\modules,c:\wildfly-9.0.2.final\modules\system\layers\base))) @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:437) @ org.jboss.modules.moduleclassloader.loadclasslocal(moduleclassloader.java:269) @ org.jboss.modules.moduleclassloader$1.loadclasslocal(moduleclassloader.java:77) @ org.jboss.modules.module.loadmoduleclass(module.java:560) @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:197) @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:455) @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:404) @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:385) @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:130) @ org.eclipse.persistence.jpa.rs.service.jparsapplication.<init>(jparsapplication.java:65) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ org.jboss.resteasy.core.constructorinjectorimpl.construct(constructorinjectorimpl.java:148) ... 19 more caused by: java.lang.noclassdeffounderror: javax/ws/rs/ext/exceptionmapper @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:760) @ org.jboss.modules.moduleclassloader.dodefineorloadclass(moduleclassloader.java:353) @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:432) ... 33 more caused by: java.lang.classnotfoundexception: javax.ws.rs.ext.exceptionmapper [module "org.eclipse.persistence:main" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\wildfly-9.0.2.final\modules,c:\wildfly-9.0.2.final\modules\system\layers\base))] @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:205) @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:455) @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:404) @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:385) @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:130) ... 37 more 16:53:17,031 error [org.jboss.as.controller.management-operation] (controller boot thread) wflyctl0013: operation ("deploy") failed - address: ([("deployment" => "csbasement.war")]) - failure description: {"wflyctl0080: failed services" => {"jboss.undertow.deployment.default-server.default-host./csbasement" => "org.jboss.msc.service.startexception in service jboss.undertow.deployment.default-server.default-host./csbasement: java.lang.runtimeexception: failed construct public org.eclipse.persistence.jpa.rs.service.jparsapplication() caused by: java.lang.runtimeexception: failed construct public org.eclipse.persistence.jpa.rs.service.jparsapplication() caused by: java.lang.linkageerror: failed link org/eclipse/persistence/jpa/rs/exceptions/jparsexceptionmapper (module \"org.eclipse.persistence:main\" local module loader @45283ce2 (finder: local module finder @2077d4de (roots: c:\\wildfly-9.0.2.final\\modules,c:\\wildfly-9.0.2.final\\modules\\system\\layers\\base))) caused by: java.lang.noclassdeffounderror: javax/ws/rs/ext/exceptionmapper
i added
<module name="javax.ws.rs.api"/>
in module.xml , smooth.
Comments
Post a Comment