• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1021
  • 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

https://i.imgur.com/CHlLiCQ.png
 
Saloon Keeper
Posts: 27762
196
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.
 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic