Method not found on Employee Rostering web example

187 views
Skip to first unread message

chirag.dig...@gmail.com

unread,
Aug 17, 2017, 11:55:39 PM8/17/17
to OptaPlanner development

Hi,
I have downloaded the employee-rostering example and build it using maven
Generated ROOT.war file,  I am deploying on Wildfly 10.
I am facing method not found an error while calling the spot rostering rest method. Attaching the server log & error screenshot.

Downloaded from GitHub->
Build the project with Maven->
                                                mvn clean install 
                                                mvn clean package -P openshift

Deployed on wildfly 10.

Error->
2017-08-17 15:07:33,495 ERROR [io.undertow.request] (default task-10) UT005023: Exception handling request to /rest/tenant/-1/roster/spotRosterView/current: java.lang.NoSuchMethodError: com.fasterxml.jackson.datatype.jsr310.ser.JSR310FormattedSerializerBase.findFormatOverrides(Lcom/fasterxml/jackson/databind/SerializerProvider;Lcom/fasterxml/jackson/databind/BeanProperty;Ljava/lang/Class;)Lcom/fasterxml/jackson/annotation/JsonFormat$Value; 
server.log
error.PNG

jimb...@gmail.com

unread,
Aug 19, 2017, 2:23:34 PM8/19/17
to OptaPlanner development, chirag.dig...@gmail.com
Hi, Why don't you just deploy in Openshift like the demo suggests?

Geoffrey De Smet

unread,
Aug 21, 2017, 1:08:56 AM8/21/17
to optapla...@googlegroups.com

Hi,

1) Which version of WildFly is this?
I am running locally with WildFly 10.1.0.Final, so it's strange it fails for your with WildFly 10.


2) The error message is related to this dependency in optashift-employee-rostering's pom.xml:
   <artifactId>jackson-datatype-jsr310</artifactId>

It's not that it's not there, the jackson-datatype-jsr310 jar seems to be in the classpath.
The problem is that the jackson-datatype-jsr310 version used are not the same as the jackson-annotations and jackson-databind versions in the classpath.

Normally all 3 jackson-* jars should be version 2.8.8, see root pom.xml.
It's possible that WildFly has a different version of jackson-annotations/-databind and ignores the one from the war.

With kind regards,
Geoffrey De Smet

--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To post to this group, send email to optapla...@googlegroups.com.
Visit this group at https://groups.google.com/group/optaplanner-dev.
For more options, visit https://groups.google.com/d/optout.

chirag.dig...@gmail.com

unread,
Aug 22, 2017, 2:05:08 AM8/22/17
to OptaPlanner development
Hi Geoffrey,

Thanks for replaying.
It's not working on wildfly 10 but on the newer version, it's working.

shainaz...@gmail.com

unread,
Dec 19, 2018, 2:38:33 AM12/19/18
to OptaPlanner development
 hI 

i am newby to optaplanner i dont know how to deploye can u plz explain me step by step 

shainaz...@gmail.com

unread,
Dec 19, 2018, 2:39:31 AM12/19/18
to OptaPlanner development

shainaz...@gmail.com

unread,
Dec 19, 2018, 2:41:07 AM12/19/18
to OptaPlanner development
hi ,can u plz give me step by step info how to deployee into maven plz


On Friday, August 18, 2017 at 9:25:39 AM UTC+5:30, chirag.dig...@gmail.com wrote:

coder-360 programming blog

unread,
Dec 26, 2018, 1:58:19 AM12/26/18
to OptaPlanner development


On Friday, August 18, 2017 at 9:25:39 AM UTC+5:30, chirag.dig...@gmail.com wrote:

Geoffrey De Smet

unread,
Dec 26, 2018, 8:12:34 AM12/26/18
to optapla...@googlegroups.com

With kind regards,
Geoffrey De Smet

--
Reply all
Reply to author
Forward
0 new messages