오류 해결

Jenkins 포트변경 중 groovy 오류 (WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 ...)

Nellie Kim 2024. 2. 6. 15:57
728x90

이렇게 들어가서 포트 변경을 하고, 

vi /usr/lib/systemd/system/jenkins.service

 

다시 실행을 시켜봤는데, 아래와 같은 WARNING 이 뜨며, 액세스가 거부되었다는 메시지가 떴다. 

[root@localhost /]# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
     Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; preset: disabled)
     Active: active (running) since Tue 2024-02-06 14:51:52 KST; 5min ago
   Main PID: 78498 (java)
      Tasks: 37 (limit: 48940)
     Memory: 215.2M
        CPU: 22.786s
     CGroup: /system.slice/jenkins.service
             └─78498 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

Feb 06 14:51:36 localhost.localdomain jenkins[78498]: *************************************************************
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: *************************************************************
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: WARNING: An illegal reflective access operation has occurred
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Feb 06 14:51:36 localhost.localdomain jenkins[78498]: WARNING: All illegal access operations will be denied in a future release
Feb 06 14:51:52 localhost.localdomain jenkins[78498]: 2024-02-06 05:51:52.635+0000 [id=28]        INFO        jenkins.InitReactorRunner$1#onAttained: Completed initialization
Feb 06 14:51:52 localhost.localdomain jenkins[78498]: 2024-02-06 05:51:52.670+0000 [id=22]        INFO        hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
Feb 06 14:51:52 localhost.localdomain systemd[1]: Started Jenkins Continuous Integration Server.
[root@localhost /]# ^C

 

 

https://jojoldu.tistory.com/354

 

Jenkins Port 변경하기

Jenkins의 기본 포트는 8080입니다.사정상 한대의 서버에 이것저것 설치해서 쓸 경우 8080포트는 사용하기 어렵습니다.(Upsource, Tomcat 등 대부분의 소프트웨어는 8080 포트를 기본으로 쓰고 있습니다)

jojoldu.tistory.com

 

 

참고하여 변경하니 해결되었다.