Win a copy of Microservices Testing (Live Project) this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Deployments Misbehaving

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having deployment issues with

I have developed a struts based framework that accepts user input, toddles off via a session bean to a sqlServer DB, and comes back with some information.

This all works fine on my desktop. When I deploy just the WAR file to our test server on a remote machine, the JSPs/Forms and servelts all behave (until they try to ask services from the undeployed EJBs, but I have no concerns about this tier of my application). As soon as I wrap the WAR file up into an EAR file, and deploy this to the remote machine, the EAR loads, starts, but immediately fails � I cannot invoke any of the JSPs as the servlets don�t load. The error message printed to the logs is (edited heavily):
From what I can make out, the problem exists because when CustomerDataForm is loaded, the JVM cannot find CompanyForm which extends ActionForm.

CustomerDataForm exists in a Web Application Project
CompanyForm does not, it exists in a standard java project � could this be my issue? If I want to have all my ActionForms extend from one parent that extends ActionForm, does my parent need to be in a Web Application Project?

If I remove the call to CompanyForm, everything is tickety-boo.

Or do I need to mess around with the classpaths in the EAR�s deployment descriptor.

Oh yeah, how do I add utility (3rd party) jars to my ear deployment descriptor � can�t find a tool to do this at all, and editing source always makes me nervous.

Many thanx
 
Alana Sparx
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good to see my posts in this particular community are being ignored, as per usual.
 
Alana Sparx
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Surprise surprise, no-one can answer this......
 
We're all out of roofs. But we still have tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic