• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

how do I change the pom such that it will run on wildfly in Eclipse ?

Ranch Hand
Posts: 929
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I have been trying to change this pom in maven to make it run in wildfly in Eclipse without avail.

The pom is basically getting from this site :

and here I am trying to create a new xhmtl which I get from the showcase which illustrate how the dataModel works :

Here's I the pom that I have now, removing the jetty portion and adding jboss-web.xml

The new pom :

Deleted nbactions.xml :

and the output is always

Saloon Keeper
Posts: 26280
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "from" is as important as the "to". And the "in Eclipse" doesn't count.

If you have a POM that builds a WAR for jetty or Tomcat, those two webapp servers do not implement the full JEE stack.

Among other things that means that jetty and Tomcat don't implement JavaServer Faces, JPA, and the other extended JEE features. Basically they only do servlets and JSPs and if you want JPA and/or JSF, you have to explicitly include implementation JARs for those functions in the WAR you build.

Wildfly, on the other hand, is a full-stack server, so you have to remove those implementation JARs from the WAR you build or you will encounter class conflicts as it fights between the WAR-included code and the server-included code.
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic