• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Modifying files in a Java project that a Web project depends on

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to create a Web Project that is related to a Java Project.
For this I have done the following -
1. Created my Java project and my Web project.
2. Added my Java project to the build path of my web project
3. Edited WebContent/META-INF/Manifest.MF and added the Java Project as a dependency for my Web project.
4. In the Applications tab set WAR Class loader policy to APPLICATION
On editing and then saving the java files in my Java Project and restarting the server the changes that I made do not get reflected.
However doing a full rebuild of the Java project and then restarting the server works.
Is there an easier solution?
 
author
Posts: 4342
40
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What mode are you running in? WebSphere via WSAD/RAD allows a hot deployment mode (double click on the test server in WSAD) which specifies whether or not to run the files in place or not. If they are in being run in place, then you have to perform a build after changing the files. If you have 'build automatically' turned off then there's no reason the server will be updated since it runs from the built files.

Maybe I'm misunderstanding, but I don't follow how changing java files and restarting the server effects the compiled java files the WAR depends on.
 
What's gotten into you? Could it be this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic