This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 577084 - server.xml re-formatting docBase
Summary: server.xml re-formatting docBase
Status: RESOLVED INVALID
Alias: None
Product: EPP
Classification: Technologie
Component: jee-package (show other bugs)
Version: 4.21 / 2021-09   bearbeiten
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: later   bearbeiten
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-05 05:00 EDT by Artur Kurkowiak CLA
Modified: 2021-11-05 05:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Kurkowiak CLA 2021-11-05 05:00:33 EDT
When Tomcats server.xml file is formatted for my readability WITH line-breaks:

<Context 
  docBase="/Users/user/directory a/directory b" 
  path="/myapp" 
  reloadable="true" 
  source="org.eclipse.jst.jee.server:myapp">

Eclipse will (after project or server clean) put all attributes in one line
BUT with docBase PATH present twice and will fail starting the server after.

The generated file is written here:
"%eclipse_workspace%/.metadata/.plugins/org.eclipse.wst.server.core/tmp0"

new server.xml with FALSE docBase:

<Context docBase="/Users/a/Dropbox (ALPL)/ALPL_eclipse_workspace_2020_12/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Users/a/Dropbox (ALPL)/ALPL_eclipse_workspace_2020_12/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sim" path="/sim" reloadable="true" source="org.eclipse.jst.jee.server:sim">
Comment 1 Artur Kurkowiak CLA 2021-11-05 05:40:06 EDT
oups, sorry just noticed, 

the docBase from server.xml is simply ADDED to the 
-Dcatalina.base VM argument.

And both had the same FULL path configured.

For some reason... that was never an issue up to v4.21.0