• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Add/remove in eclipse create problems during Wildfly startup.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!