Table of contents
- 1. Issue: enable ajp on Port 8019
- 2. Issue: enable astron login authentication module
- 3. Issue: adapt context.xml
- 4. Issue: adapt catalina.properties
- 5. Issue: copy webapps
- 6. Issue: install new version of mysql-connector/J
- 7. Issue: Make changes in files:
- 8. Issue: cannot do any action on existing proposals
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 "%r" %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/applicants.jsp webapps/proposal/pages/modules/effelsberg/help/justification_instructions.jsp