• 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

Add/remove in eclipse create problems during Wildfly startup.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
all.

I have a maven web project.

If I deploy the ear using the maven install command I have no problem.
It deploy the .ear in the deployments directory and the application work as expected.

If I use the add/remove button in eclipse I get this error during the server startup.



Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AB' defined in ServletContext resource [/WEB-INF/spring-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: acmeServicesEJB/AB!jadf.openframework.cloud.acme.services.ejb.interfaces.IAB -- service jboss.naming.context.java.app."acme-0.0.1-acme".acmeServicesEJB."AccountBean!jadf.openframework.cloud.acme.services.ejb.interfaces.IAB"


What does it means? Can you help me please?
 
Davide Perini
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok,
I get the problem.

When I deploy using maven it deploys the various module using the

<build>
<finalName>BOsEJB</finalName>
</build>

if I run the maven install command the module is built using the BOsEJB name.

If I install using the eclipse add/remove function it built the module using the groupId+versionId name.

this creates problem with the name I defined in the spring-dispatcher-sservlet.xml

how can I tell eclipse to build modules with the finalName specified in the pom.xml instead of using the groupId+versionId of the module?
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic