• 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

tomcat configuration in eclipse - context element in server.xml

 
Ranch Hand
Posts: 40
Google Web Toolkit Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm having a problem understanding one thing.

when i create a new server (tomcat) in eclipse, config files are created, including server.xml.
when i add my projects, it creates <Context> elements under Server->Service->Engine->Host.

i'm more than ok with that, everything works fine, but i want to understand that file.

when i tried to find a .dtd for that file - i found explanation why none can exist.
i checked apache's documentation and i noticed that eclipse adds one attribute to the <Context> element - source.



where can i find some docs for attributes added by eclipse?
 
Ranch Hand
Posts: 77
Eclipse IDE Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For every web application there will be one Context entry in server.xml.

value of the path attribute is used in URL when you access the servlet.
reloadable=true says that any change will be loaded without restart of server.
docBase will be the path of the WAR file of your web application project.

Hope this is clear..
 
Maciej Drozdzowski
Ranch Hand
Posts: 40
Google Web Toolkit Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you're not answering my question, maybe i didn't make myself clear.

eclipse adds the source attribute and it's not in tomcat's docs.
what is that attribute? where do i find docs for such attributes, which are not specified by tomcat, but added by eclipse?
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maciej Drodel wrote:you're not answering my question, maybe i didn't make myself clear.

eclipse adds the source attribute and it's not in tomcat's docs.
what is that attribute? where do i find docs for such attributes, which are not specified by tomcat, but added by eclipse?



This appears to be something contributed by the WTP plugin - which for the record, I don't like (I use the sysdeo plugin). Your best bet would be to lookup the docs on WTP.

On the other hand, I don't believe it's really worthwhile learning WPT's internal contributions to Tomcat config. They're totally useless anywhere but in WTP, and that especially means they're no good for production. And since one of the reasons I despise WTP so whole-heartedly is because it plays fast and loose with Tomcat configuration to begin with, you'll pardon me if I wouldn't consider these sort of extensions to have long-term viability.
 
Maciej Drozdzowski
Ranch Hand
Posts: 40
Google Web Toolkit Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i googled a bit for that WTP stuff, but i found nothing.
i was just wondering what that meant.
and yes, i agree, only the tomcat attributes matter
 
Tim Holloway
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it stands for something like "Web Toolkit Plugin". Most of the documentation is probably lurking somewhere on the eclipse.org website and you'll probably have to squirrel-search for it, since I don't recall the eclipse.org search engine as posing any serious threat to Google.
 
reply
    Bookmark Topic Watch Topic
  • New Topic