A project in the Docker Tomcat container needs to modify the JavaAgent parameter, which was modified previously as follows
In the catalina.sh file, add the JAVA_OPTS parameter as follows
Export JAVA_OPTS = “$JAVA_OPTS – javaagent:/aspectjweaver – 1.8.13. Jar”
Restart the container, error, jar cannot be found
After checking, the JavaAgent parameter should be followed by a full path. Relative paths cannot be used.
To:
Export JAVA_OPTS = “$JAVA_OPTS – javaagent:/usr/local/tomcat/bin/aspectjweaver – 1.8.13. Jar”
In the catalina.sh file, add the JAVA_OPTS parameter as follows
Export JAVA_OPTS = “$JAVA_OPTS – javaagent:/aspectjweaver – 1.8.13. Jar”
Restart the container, error, jar cannot be found
After checking, the JavaAgent parameter should be followed by a full path. Relative paths cannot be used.
To:
Export JAVA_OPTS = “$JAVA_OPTS – javaagent:/usr/local/tomcat/bin/aspectjweaver – 1.8.13. Jar”
Read More:
- Docke Run: response from daemon: OCI runtime create failed: container with id exists:XXX:unknown
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
- JSON parse error: invalid UTF-8 solution series
- An error occurred when starting Tomcat in Eclipse: the sub container failed to start
- Docker starts MySQL container and reports an error driver failed programming external connectivity on endpoint mysq
- JSON parse e rror: Invalid UTF-8 middle byte 0x3f;
- Error: path not specified when the docker 1.7 file is uploaded to the container in CentOS
- After changing tomcat, the previous images cannot be displayed. All 404,
- Abnormal report error javax.net.ssl .SSLHandshakeException: server certificate change is restrictedduring renegotiation
- Failed to connect to remote VM. Connection reused. Connection reused: Connect
- Common command of docker
- A child container failed during start Tomcat error prompt
- Namenode startup error: outofmemoryerror: Java heap space
- Start Tomcat and report error occurred during initialization of VM could not reserve enough space for object
- Tomcat start error touch under Linux
- Linux Tomcat accessing files on the server
- Maven failed to start component [standard engine [Tomcat] when using tomcat7 Maven plugin plug-in run
- Error response from daemon: Conflict: unable to delete 8598c91556dc (must be forced)
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)