java - RestEasy's @Form annotation doesn't works on Glassfish 4.1 -


i trying make legacy java web application packaged inside ear written jboss 7 work on glassfish 4.1. the application not built maven nor gradle (so please, not post answers maven dependencies, because can't mavenize or gradleize application yet). dependencies bunch of jars located on lib folder.

my issue jax-rs methods have parameters annotated org.jboss.resteasy.annotations.form. application declared no dependency on resteasy packages, guess used found somewhere inside jboss or in weird endorsed classpath. not have access original jboss, looking there not option.

by removing methods @form-annotated parameters , deploying it, jax-rs part works. parts important application , should not removed.

i tried add following jars:

  • resteasy-jaxrs-3.0.13.final.jar
  • resteasy-atom-provider-3.0.13.final.jar
  • resteasy-cdi-3.0.13.final.jar
  • resteasy-crypto-3.0.13.final.jar
  • resteasy-jackson2-provider-3.0.13.final.jar
  • resteasy-jaxb-provider-3.0.13.final.jar
  • resteasy-jaxrs-3.0.13.final.jar
  • resteasy-jsapi-3.0.13.final.jar
  • resteasy-multipart-provider-3.0.13.final.jar
  • resteasy-servlet-initializer-3.0.13.final.jar
  • async-http-servlet-3.0-3.0.13.final.jar

the best got far this:

grave:   containerbase.addchild: start:  org.apache.catalina.lifecycleexception: org.apache.catalina.lifecycleexception: java.lang.nullpointerexception     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:5954)     @ com.sun.enterprise.web.webmodule.start(webmodule.java:691)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:1041)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:1024)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:747)     @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:2286)     @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:1932)     @ com.sun.enterprise.web.webapplication.start(webapplication.java:139)     @ org.glassfish.internal.data.engineref.start(engineref.java:122)     @ org.glassfish.internal.data.moduleinfo.start(moduleinfo.java:291)     @ org.glassfish.internal.data.applicationinfo.start(applicationinfo.java:352)     @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:500)     @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:219)     @ org.glassfish.deployment.admin.deploycommand.execute(deploycommand.java:491)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$2$1.run(commandrunnerimpl.java:539)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$2$1.run(commandrunnerimpl.java:535)     @ java.security.accesscontroller.doprivileged(native method)     @ javax.security.auth.subject.doas(subject.java:360)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$2.execute(commandrunnerimpl.java:534)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$3.run(commandrunnerimpl.java:565)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$3.run(commandrunnerimpl.java:557)     @ java.security.accesscontroller.doprivileged(native method)     @ javax.security.auth.subject.doas(subject.java:360)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:556)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.docommand(commandrunnerimpl.java:1464)     @ com.sun.enterprise.v3.admin.commandrunnerimpl.access$1300(commandrunnerimpl.java:109)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1846)     @ com.sun.enterprise.v3.admin.commandrunnerimpl$executioncontext.execute(commandrunnerimpl.java:1722)     @ com.sun.enterprise.v3.admin.adminadapter.docommand(adminadapter.java:534)     @ com.sun.enterprise.v3.admin.adminadapter.onmissingresource(adminadapter.java:224)     @ org.glassfish.grizzly.http.server.statichttphandlerbase.service(statichttphandlerbase.java:189)     @ com.sun.enterprise.v3.services.impl.containermapper$httphandlercallable.call(containermapper.java:459)     @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:167)     @ org.glassfish.grizzly.http.server.httphandler.runservice(httphandler.java:201)     @ org.glassfish.grizzly.http.server.httphandler.dohandle(httphandler.java:175)     @ org.glassfish.grizzly.http.server.httpserverfilter.handleread(httpserverfilter.java:235)     @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119)     @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:284)     @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:201)     @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:133)     @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:112)     @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77)     @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:561)     @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112)     @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117)     @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56)     @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137)     @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:565)     @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:545)     @ java.lang.thread.run(thread.java:745) caused by: org.apache.catalina.lifecycleexception: java.lang.nullpointerexception     @ org.apache.catalina.core.standardcontext.callservletcontainerinitializers(standardcontext.java:6037)     @ com.sun.enterprise.web.webmodule.callservletcontainerinitializers(webmodule.java:774)     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:5929)     ... 49 more caused by: java.lang.nullpointerexception     @ org.jboss.resteasy.plugins.servlet.resteasyservletinitializer.register(resteasyservletinitializer.java:108)     @ org.jboss.resteasy.plugins.servlet.resteasyservletinitializer.onstartup(resteasyservletinitializer.java:79)     @ org.apache.catalina.core.standardcontext.callservletcontainerinitializers(standardcontext.java:6031)     ... 51 more 

what dependencies missing? still unable create minimum complete verifiable example of this, intend work on if nobody knows answer.

btw, should not important, anyway: application used built in eclipse (dunno specific version). using netbeans 8.0.2.

if matters, jax-rs controllers (note ejb):

@stateless @localbean @path("/foo") public class foocontroller {      @put     @path("/bar")     public response somemethod(@form somebean bean, @cookieparam("blahblah") string somecookievalue) throws somebusinessexception {         // ...     } } 

crossposted on https://pt.stackoverflow.com/q/94965/132


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -