Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io-dist/docker] Appserver.xml does contain invalid host attributes #836

Closed
trippel opened this issue Jun 11, 2015 · 3 comments
Closed

Comments

@trippel
Copy link

trippel commented Jun 11, 2015

When trying to run the docker image, wether pulled from Docker hub or being built from the Dockerfile by myself, I get the following errors in /opt/appserver/var/log/php_errors.log:

 PHP Fatal error:  Uncaught exception 'Exception' with message 'Found a schema validation error on line 35 with code 1866 and message Element '{http://www.appserver.io/appserver}host', attribute 'serverAdmin': The attribute 'serverAdmin' is not allowed.
 when validating configuration file /, see error dump below: LibXMLError::__set_state(array(
   'level' => 2,
   'code' => 1866,
   'column' => 0,
   'message' => 'Element \'{http://www.appserver.io/appserver}host\', attribute \'serverAdmin\': The attribute \'serverAdmin\' is not allowed.
',
   'file' => '/',
   'line' => 35,
))' in /opt/appserver/server.php:136
Stack trace:
#0 {main}
  thrown in /opt/appserver/server.php on line 136
[11-Jun-2015 19:04:42 Europe/Berlin] PHP Fatal error:  Uncaught exception 'Exception' with message 'Found a schema validation error on line 35 with code 1866 and message Element '{http://www.appserver.io/appserver}host', attribute 'serverAdmin': The attribute 'serverAdmin' is not allowed.
 when validating configuration file /, see error dump below: LibXMLError::__set_state(array(
   'level' => 2,
   'code' => 1866,
   'column' => 0,
   'message' => 'Element \'{http://www.appserver.io/appserver}host\', attribute \'serverAdmin\': The attribute \'serverAdmin\' is not allowed.
',
   'file' => '/',
   'line' => 35,
))' in /opt/appserver/server.php:136
Stack trace:
#0 {main}
  thrown in /opt/appserver/server.php on line 136

If I just delete the mentioned lines I am getting 404s. I was unable to identify the reason for that by now.

@wagnert
Copy link
Member

wagnert commented Jun 11, 2015

Hi, please try to delete not the complete line, instead try to change from

    ...
    <host
        name="localhost"
        appBase="/webapps"
        serverAdmin="info@appserver.io"
        serverSoftware="appserver/1.0.2-56 (darwin) PHP/5.5.22" />
    ...

to

    ...
    <host name="localhost" appBase="/webapps" />
    ...

Hopefully that fixes the problem temporarily. We'll check the docker image as soon as possible!

@trippel
Copy link
Author

trippel commented Jun 11, 2015

Hi,

I accidently deleted the "/>" part along with the above mentioned lines when I tried to fix. Your workaround works the way it should. Thank you.

@wick-ed wick-ed added the bug label Jun 15, 2015
@wick-ed wick-ed added this to the Release 1.0.6 "Iron Horse" milestone Jun 15, 2015
@wick-ed wick-ed changed the title [appserver-io-dist/docker] [appserver-io-dist/docker] Appserver.xml does contain invalid host attributes Jun 15, 2015
@wick-ed
Copy link
Member

wick-ed commented Jun 15, 2015

Fixed with this commit

@wick-ed wick-ed closed this as completed Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants