• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

override exitsing jsp file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i will explain my problem with an example:

i created a war file - lets say a core war file and i know that the file there are 100% good.

now for each project i want to override some jsp/java files , i am using war file and tomcat.

something like windows using service pack,
how can i do that, i tried to put first the root.war file (the core file) and to deploy it and them to put project file with the same name (root.war) but the project war didn't override the requested file.

i need to work in a layer option.

Thanks
SBoy
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding says that your modified java classes or jsps are not loading.
So you can reload the application as,

<target name="reload" description="Reload application in Tomcat">
<reload url="${tomcat.manager.url}"
username="${tomcat.username}"
password="${tomcat.password}"
path="/${webapp.name}"/>
</target>

Else
you can stop server, delete the dir and put the new resources and start the server.

- Vikas.
 
sharon zem
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well what i meant is to be able to just drop the so called service packs
into webapps directory and then some how make tomcat understand it needs to updated (overwrite) the right files

Sboy
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic