• 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

Virtual Directory in JBoss 4.2.2 GA

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have JBoss 4.0.4 GA installed in my local machine. I was able to map to a virtual directory with ease in this version. I added the "docBase" and "path" attribute to the "Context" element in server.xml and it worked like charm. I tried the same in JBoss 4.2.2 and it's not working. No error is being shown but a spurious warning - "WARN [config] unable to process deployment descriptor for context 'null'" is shown.

If anyone has successfully configured a simple virtual directory in JBoss 4.2.2 GA, please share your thoughts.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this. If that does not work then post the console logs. We have seen users earlier who have been able to get it working on 4.2.2. If the steps in that wiki does not work for you then we can point you to the appropriate forum links where this has been discussed earlier.
 
K Karthik
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jaikiran Pai:
Try this. If that does not work then post the console logs. We have seen users earlier who have been able to get it working on 4.2.2. If the steps in that wiki does not work for you then we can point you to the appropriate forum links where this has been discussed earlier.



Thanks a ton for such a quick reply. I did the same thing and found that it's not working. But I was wrong. It did work but not the way it works in JBoss 4.0.4.

Say for eg. I mapped "C:\images" to "\myImages". Now, let's say the C:\images directory has "foo.jpg". Now, when I entered http://localhost/myImages it din't work. It showed the usual 404 error page. Instead, when I tried http://localhost/myImages/foo.jpg it works. But in JBoss 4.0.4 it shows the files inside the directory.

Although, it serves my purpose, I would like to know why this happens? Any thoughts?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reason for that is, that in JBoss 4.2.x the 'listings' param has changed from 'true' to 'false'.

If you still want to be able to browse your folders you need to go to 'jboss-web.deployer/conf/web.xml' and changesto
[ September 17, 2008: Message edited by: Rene Larsen ]
 
K Karthik
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rene. It worked like charm.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic