• 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

Maven don't deploy EJB.jar on Wildfly Server

 
Greenhorn
Posts: 11
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I create this project: https://github.com/packt-wildfly/packt-java-ee-7-code-samples/tree/master/1980EN_03_Code/ticket-agency and now i want to deploy ejb on Wildfly server. When i run mvn wildfly:deploy i get this return:


But i dont have a deployment of ticket-agency-ejb.jar in my Wildfly Deployment tab. In target folder in project client and ejb jar exist. Why this ejb jar is not deployed?

I cant even add this ejb jar manually to the server. Wildfly is working fine, i have right server connection, login and password.


I asked about this on stackoverflow (http://stackoverflow.com/questions/33814610/maven-dont-deploy-ejb-on-server) but as always no one can help me, and as always I get negative points...

 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome, Adam. We do;t have negative points at coderanch. We only have cows

Have you tried deploying the jar manually to see if it works? Does Wildfly spit out an error on it's console/logs when you try to deploy? It could be that the maven build is working fine, but there is an error in Wildfly
 
Adam Kortylewicz
Greenhorn
Posts: 11
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for answer and idea

When i try Add Deployment in Windfly Console i get this answer:

Verify Upload
Unable to add upload to the content repository.
Name: Unique identifier of the deployment. Must be unique across all deployments.
Runtime Name: Name by which the deployment should be known within a server's runtime. This would be equivalent to the file name of a deployment file, and would form the basis for such things as default Java Enterprise Edition application and module names. This would typically be the same as 'name', but in some cases users may wish to have two deployments with the same 'runtime-name' (e.g. two versions of \"foo.war\") both available in the deployment content repository, in which case the deployments would need to have distinct 'name' values but would have the same 'runtime-name'.


Where my name of jar and runtime name is
Name: ticket-agency-ejb-0.0.1-SNAPSHOT.jar
Runtime Name: ticket-agency-ejb-0.0.1-SNAPSHOT.jar

output form cmd:

... 8 more

 
Jayesh A Lalwani
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not an expert on Wildfly, but reading the error sounds like you already have a jar deployed with that name. Maybe try undeploying and deploying again
 
Adam Kortylewicz
Greenhorn
Posts: 11
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Other error when try to enable this ejb after when i add it:

 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic