Skip to content

some Enhancements for buildwar command #7

@timtasse

Description

@timtasse

hi,

i play a little bit with the new buildwar command and found some errors in the generated web.xml.

  1. it creates a webapp 2.3 web.xml it's a little bit outdated 2.5 or 3.0 seems more state of the art:
    replace the DOCTYPE and insert web-app starting tag like this for 3.0:
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
  2. the files.prefix context-param has no value, this is not allowed
  3. the listener class has a load-on-startup tag, this is not allowed for listener only in servlets allowed
  4. eventually it's better to insert the JNDI config direct in the war file META-INF/context.xml
  5. in buildwar.py, do_copy_media und do_copy_static read the URL entries from settings.py and then joined it with os.path.join, but when the second parameter starts with '/' on MacOS it not joins, see PythonDoc

thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions