apache / apache/apisix-java-plugin-runner
help request: I try to run java plugin with debug model,but failed
- Dominant language
- Java
- Stars
- 152
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
### 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
the docker-compose.yml as below
my java plugin application.yaml as below
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 &
### 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`):
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.