Northstar Update to Debian 11.2

    The OS was updated to Debian 11.2 on Jan 19th 2022

    NorthStar did not run out of the box after the update. Neccesary fixes:

    Issue: enable ajp on Port 8019

    in server.xml (/etc/tomcat9/server.ml)

        <Connector protocol="AJP/1.3"
               address="0.0.0.0"
               secretRequired="false"
               port="8019"
               redirectPort="8443" />
    

    restart tomcat9 and apache2

    check that ajp is listening on port 8019:

    netstat -tunlp | grep 0.0.0.0:8019
    tcp        0      0 0.0.0.0:8019            0.0.0.0:*               LISTEN      65868/java
    

    Pointing browser to https://northstar.mpifr-bonn.mpg.de/ should now work (default tomcat start page)

    Issue: enable astron login authentication module

    in /etc/default/tomcat9 include the following line in the JAVA_OPTS directive

    -Djava.security.auth.login.config=$CATALINA_BASE/conf/astron.login
    
    cp /usr/share/tomcat8/lib/astron-loginmodule.jar /usr/share/tomcat9/lib/
    cp /etc/tomcat9/astron.login /var/lib/tomcat9/conf
    

    in /etc/tomcat9/server.xml change the default Engine:

        <Engine name="Catalina" defaultHost="localhost">
          <Realm className="org.apache.catalina.realm.LockOutRealm">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                   resourceName="UserDatabase"/>
          </Realm>
            <Realm appName="AstronLogin" className="org.apache.catalina.realm.JAASRealm" debug="99" roleClassNames="nl.astron.security.loginmodule.AstronRolePrincipal" userClassNames="nl.astron.security.loginmodule.AstronPrincipal" />
          <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true">
            <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    
            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                   prefix="localhost_access_log" suffix=".txt"
                   pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    
          </Host>
        </Engine>
    

    Restart of tomcat9 should throw no errors

    Issue: adapt context.xml

    in /etc/tomcat9/context.xml enter

        <JarScanner scanManifest="false"/>
        <Resource auth="Container" name="mail/Session" type="javax.mail.Session" mail.smtp.host="127.0.0.1" />
        <!--<Resource auth="Container" name="mail/Session" type="javax.mail.Session" mail.smtp.host="127.0.0.1" testserver="localhost" testmail.to="hrottmann@web.de"/>-->
        <Resource auth="Container" name="jdbc/useradministration" type="javax.sql.DataSource" maxTotal="100" maxIdle="30" maxWaitMillis="10000" username="northstar_user" password="i6bgXTVBAtWhLSTEM5jLND1Hw4vPW37j" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://127.0.0.1:3306/useradministration"/>
    

    in the <Context> area

    restart tomcat9. It should start without errors

    Issue: adapt catalina.properties

    TBD:

     

    Issue: copy webapps

    rsync -av ../tomcat8/Catalina/localhost/* Catalina/localhost
    chown :tomcat  Catalina/localhost/*
    cp /var/lib/tomcat8/webapps/*.war /var/lib/tomcat9/webapps/
    cp /usr/share/tomcat8/lib/log4j.properties /usr/share/tomcat9/lib/
    cp /usr/share/tomcat8/lib/commons-logging.jar /usr/share/tomcat9/lib/
    cp /usr/share/tomcat8/lib.55/* /usr/share/tomcat9/lib/
    

    restart tomcat9

    Issue: install new version of mysql-connector/J

    The old version of the mysql connector located in /usr/share/tomcat9/lib/ is too old.

    Downloaded the latest version of .deb package; extracted the jar file and copied to /usr/share/tomcat9/lib/:

    Issue: Make changes in files:

    webapps/proposal/pages/help/northstar_help.jsp
    webapps/proposal/pages/host/help/general_help.jsp
    webapps/proposal/pages/applicants.jsp
    webapps/proposal/pages/modules/effelsberg/help/justification_instructions.jsp
    

    Issue: cannot do any action on existing proposals

    Proposals can be created but when saving and existing the existing proposals cannot be edited, deleted etc. On any action the following exeption is thrown:

    [2022-01-21 14:56:02] [crit] admin - https://northstar.mpifr-bonn.mpg.de/proposal/processProposalList.do
    [2022-01-21 14:56:02] [info] Unhandled exception: null
    [2022-01-21 14:56:02] [info] StackTrace:
    [2022-01-21 14:56:02] [info] class java.lang.NullPointerException
    [2022-01-21 14:56:02] [info] #011org.apache.commons.beanutils.PropertyUtilsBean.setIndexedProperty(PropertyUtilsBean.java:1414)
    [2022-01-21 14:56:02] [info] #011org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1016)
    [2022-01-21 14:56:02] [info] #011org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
    [2022-01-21 14:56:02] [info] #011org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
    [2022-01-21 14:56:02] [info] #011org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
    [2022-01-21 14:56:02] [info] #011org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:804)
    [2022-01-21 14:56:02] [info] #011org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
    [2022-01-21 14:56:02] [info] #011org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    [2022-01-21 14:56:02] [info] #011eu.radionet.northstar.control.ActionServlet.superProcess(ActionServlet.java:141)
    [2022-01-21 14:56:02] [info] #011eu.radionet.northstar.control.ActionServlet.process(ActionServlet.java:112)
    [2022-01-21 14:56:02] [info] #011org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    [2022-01-21 14:56:02] [info] #011javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
    

    Debuging: /root/northstar-web-lib/src/eu/radionet/northstar/control/proposal/list/ProcessProposalListAction.java

    Tag page (Edit tags)
    • No tags
    Page statistics
    412 view(s), 23 edit(s) and 6595 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments