This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Unreachable catch block

Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am trying to deploy .ear on websphere. I am getting the following error 'the installation of application com failed.'

ADMA5058I: Application and module versions validated with versions of deployment targets.
ADMA5018I: The EJBDeploy command is running on enterprise archive (EAR) file C:\Program Files\IBM\WebSphere\AppServer\profiles\default\wstemp\0\upload\com.ear.
Starting workbench.
Creating the project.
Building: /com-server
Deploying jar com-server
Generating deployment code
Refreshing: /com-server/ejbModule.
Building: /com-server
ejbModule/com/objectmodel/server/ejb/ Unreachable catch block for AssociationException. This exception is never thrown from the try statement body

Shutting down workbench.
Execution Halted: Compilation Errors Reported
37 Errors, 0 Warnings, 0 Informational Messages

Any body who can suggest a solution is appreciable.

Advance thanks,
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the exceptions you are throwing from your ejb's. remove those exceptions which are not relevant

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!