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

Problems creating WAR file

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created and deployed a WAR file in JBOSS. After this I added another java class into my application. But this new class is not getting reflected in my WAR file.
Even the changes I made to the current class file are not getting reflected.

I am getting the same output even after making changes in my java class.

for example

my old class



my new class



But i always get the output as hiiiiiiiiiiiiiiiiiiii..............

When I add a new class i get the error, ******** class is unavailable to load.

Can any one help me out in this!!!
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gohan, please use the code tag, and not red text, for source code. I fixed it for you this time.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please explain how this post has something to do with build tools. If not, I will move to the JBoss forum.

Also, what are the contents of the deployed WAR?
 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mod - Kindly move to the JBOSS forum.

Contents of the WAR file are:-
1) WEB-INF ->lib,classes,web.xml
2)METAIINF->MANIFEST.MF
3)jsp

web-xml


 
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to make sure.. your War has proper class file and is redeployed properly.

Also.. Set the following no Cache response in the response..

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0


One more thing is.. delete the cache from the browser.
 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks its resolved now .............

Another thing i want to know if we can

list the contents of the WAR file in our web browser

.
I am using JBOSS for my application.
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>>list the contents of the WAR file

How do you want to display ? like the index pages ?

or just a list ?
 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just as a list.

If there is a .jsp file inside the WAR file, i want that to be listed in my browser.

Lets take that i have a hello.jsp file in my WAR (EX:-mywar).

I enter the link http://localhost:8080/mywar and I want the .jsp file to be listed now.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to define the default servlet in you web.xml file and set the listings parameter to true. You can find an example in the global web.xml file located at server/xxx/deployers/jbossweb.deployer/web.xml. You can also just change listings to true in the global web.xml to have that setting work for all deployed web apps.
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic