• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Stephan Wöbbeking
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Posts: 18789
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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: 16
  • Mark post as helpful
  • send pies
  • 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: 18789
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!