2024-07-03

Logrotate failed because parent directory has insecure permissions (It's world writable or writable by group which is not "root")

 

Error:

error: skipping "output.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.



Googled: Set "su" directive in config file to tell logrotate which user/group should be used for rotation.


Reference URL: https://www.suse.com/support/kb/doc/?id=000017263

su user group

in logrotate config file




/var/log/tomcat5/base/*.txt {
    su tomcat tomcat
    notifempty
    copytruncate
    weekly
    rotate 52
    compress
    missingok
}

/var/log/tomcat5/base/catalina.out {
    su tomcat tomcat
    notifempty
    copytruncate
    weekly
    rotate 52
    compress
    missingok
}


2024-07-02

jaxb2-maven-plugin 2.5.0 package javax.xml.bind.annotation does not exist

 





Not working

<!--

[ERROR]

.../generated/AcademicTitleCode.java:[11,33]

package javax.xml.bind.annotation does not exist

-->

<dependency>

<groupId>jakarta.xml.bind</groupId>

<artifactId>jakarta.xml.bind-api</artifactId>

<!--

<version>4.0.0</version>

-->

</dependency>

<dependency>

<groupId>com.sun.xml.bind</groupId>

<artifactId>jaxb-impl</artifactId>

<!--

<version>4.0.0</version>

<scope>runtime</scope>

-->

</dependency>

<!--

<dependency>

<groupId>org.glassfish.jaxb</groupId>

<artifactId>jaxb-runtime</artifactId>

<version>4.0.0</version>

</dependency>

-->


Resolved by:

<!--

https://github.com/FasterXML/jackson-modules-base/discussions/239

-->

<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->

<dependency>

<groupId>javax.xml.bind</groupId>

<artifactId>jaxb-api</artifactId>

<version>2.3.1</version>

</dependency>