This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb3 on jboss(Unix)  RSS feed

 
vidya mahavadi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have ejb3 applciation which I am running on Jboss 4.0.5GA. My application structure looks pretty simple.

myApp
|
|_target
|_src
|_test
|_ main
|
|_java
|
|_resources
|_log4j.properties
|_META-INF
|
|_jboss.xml
|_persistence.xml


When I run maven to package the jar file it puts the jboss.xml and persistence.xml in meta-inf (lower case) folder. The application deploys perfectly in Jboss running on Windows as well as Unix, but does not behave the same way. (I checked in JMX console)

I have an annotation
@EJB AmendmentsService amendmentsBean in one of the MDB. When I run it on Windows this DI works perfect, but fails on Unix (The bean does not get instantiated). Is it because of the case change of the meta-inf folder in the jar file..

If anyone has come across similar problem or have a solution for this, please respond.

Thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, META-INF must be in all caps. Windows won't care, but lower and upper case is a big difference in Linux and Unix.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!