Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nacos server startup issues #560

Closed
misselvexu opened this issue Jan 3, 2019 · 2 comments
Closed

Nacos server startup issues #560

misselvexu opened this issue Jan 3, 2019 · 2 comments
Assignees
Milestone

Comments

@misselvexu
Copy link

Reporting bugs

Java Version

$java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

Nacos Server Version 0.7.0

Startup Exception

startup shell

sh startup.sh -m standalone

Terminal output

/Users/cinc/develop.env/jdk/jdk-11.0.1.jdk/Contents/Home/bin/java  -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Xlog:gc*:file=/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/logs/nacos_gc.log:time,tags:filecount=10,filesize=102400 -Djava.ext.dirs=/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/plugins/cmdb -Dnacos.home=/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos -jar /Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/target/nacos-server.jar  --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/conf/ --logging.config=/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/conf/nacos-logback.xml
nacos is starting
-Djava.ext.dirs=/Users/cinc/Documents/github.com/cinc/nacos/distribution/target/nacos-server-0.7.0/nacos/plugins/cmdb is not supported.  Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Fixed

Edit startup.sh

Replaced

JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/plugins/cmdb"

With

JAVA_OPT="${JAVA_OPT} -Xbootclasspath/a:./:${BASE_DIR}/plugins/cmdb"

Any other way to fix it?

nkorange added a commit that referenced this issue Jan 4, 2019
@nkorange
Copy link
Collaborator

nkorange commented Jan 4, 2019

@misselvexu -Djava.ext.dirs is no longer supported since Java 9. Your solution is OK.

@misselvexu
Copy link
Author

@nkorange okay, thanks, I will close this issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants