• 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

How are 'Context' tags in server.xml generated for TomEE under Eclipse?

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi, I have some trouble getting my TomEE 8.5.11/7.0.3 up and running with proper configuration. I have only one project configured - HelloWorld - so far. The server.xml gets generated whenever I ask the server to "publish". In that configuration file, there is this entry:



One point is, that the path is empty which looks not very useful for me. Another thing is, that the deployed web module What I want it to look like is like this:



I just don't find any combination how I can achieve this? When I add the web module, I get TWO lines for ROOT, one with path and one without, that obviously blocks the server from starting...

Any ideas? Thanks a lot!
Stephan
 
Saloon Keeper
Posts: 27752
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 don't know about TomEE, but the Eclipse WTP plugin commits atrocities on the server configuration for plain Tomcat. Then it lets them go stale when you want to update them. I've always preferred the sysdeo/mongrel plugin to run Tomcat. You have to manually create a Context definition for each webapp in the test, but at least you know exactly what you're getting. Note that newer Eclipse versions don't support sysdeo or mongrel. See recent postings in the Tomcat forum on where to get an equivalent plugin.
 
Stephan Wöbbeking
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the answer!

But for the specific topic, I had the impression that there can only be a little thing that I have missed. Hmm, I can't believe that this might not be possible to fix? Because its just only to tell Eclipse not to generate this ROOT docBase automatically...?

Stephan
 
Tim Holloway
Saloon Keeper
Posts: 27752
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 don't expect much from WTP, least of all helpful intelligence.

If you're trying to deploy the app under the root context, I'd expect even less help. It would have to displace the default webapp.

Personally I don't usually replace the root app. There can be only One.
 
reply
    Bookmark Topic Watch Topic
  • New Topic