apache / apache/apisix-java-plugin-runner

help request: I try to run java plugin with debug model,but failed

Abierto
#286 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
152
Forks
102
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Description

Issue description
I run the apisix in docker
[root@cloudpark-test ~]# docker ps
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8fa47e223cf5 apache/apisix:3.7.0-debian "/docker-entrypoint.…" About an hour ago Up About an hour 0.0.0.0:9091-9092->9091-9092/tcp, 0.0.0.0:9180->9180/tcp, 0.0.0.0:9443->9443/tcp, 0.0.0.0:9070->9080/tcp docker-apisix_apisix_1
d09627d5d710 apache/apisix-dashboard:latest "/usr/local/apisix-d…" 12 days ago Up About an hour 0.0.0.0:9000->9000/tcp docker-apisix_dashboard_1
f4b08fac1152 prom/prometheus:v2.25.0 "/bin/prometheus --c…" 12 days ago Up About an hour 0.0.0.0:9090->9090/tcp docker-apisix_prometheus_1
986fd4064e6c nginx:1.19.0-alpine "/docker-entrypoint.…" 12 days ago Up About an hour 0.0.0.0:9081->80/tcp docker-apisix_web1_1
cb6534b915ab bitnami/etcd:latest "/opt/bitnami/script…" 12 days ago Up About an hour 0.0.0.0:2379->2379/tcp, 2380/tcp docker-apisix_etcd_1
8c38d3344d9a grafana/grafana:7.3.7 "/run.sh" 12 days ago Up About an hour 0.0.0.0:3000->3000/tcp docker-apisix_grafana_1
c5b1976abe51 nginx:1.19.0-alpine "/docker-entrypoint.…" 12 days ago Up About an hour 0.0.0.0:9082->80/tcp
```

the apisix config as below
image

the docker-compose.yml as below
image

my java plugin application.yaml as below

image
image

I use the command "docker exec -it 8fa47e223cf5 /bin/bash " login docker and run the below java command, the java plugin is up
in the docker container.
nohup /jdk17/bin/java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED -jar -DAPISIX_LISTEN_ADDRESS=unix:/tmp/runner.sock -DAPISIX_CONF_EXPIRE_TIME=3600 /path/to/dubbo-plugin-0.0.1-SNAPSHOT-exec.jar > a.log &
image

### which step or configuration is wrong?

### Environment

- APISIX version (run `apisix version`):3.7.0
- Operating system (run `uname -a`):linux centos
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners: java plugin 0.4.0
- LuaRocks version, for installation issues (run `luarocks --version`):

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.