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

/etc/init.d/glassfish: not found #6

Open
ghost opened this issue Feb 2, 2017 · 8 comments
Open

/etc/init.d/glassfish: not found #6

ghost opened this issue Feb 2, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 2, 2017

Hi Adithya,

During the execution of glassfish role script, I got the following error in Start Glassfish task:
"stderr": "/bin/sh: 1: /etc/init.d/glassfish: not found".
Even though the glassfish script file is in /etc/init.d/.

@adithyakhamithkar
Copy link
Owner

Let me check and get back

@adithyakhamithkar
Copy link
Owner

Glassfish is failing to start and i see this in the logs

GlassFish requires Java SE version 6. Your JDK is version 0

Let me try looking for a way to fix it.

@adithyakhamithkar
Copy link
Owner

adithyakhamithkar commented Feb 2, 2017

I found this https://java.net/jira/browse/GLASSFISH-21479

Glassfish 4.1 won't start with JDK 9 build jdk9-b95 (and later) because of version string change (project verona) .Please refer http://openjdk.java.net/jeps/223.We are getting error in console as
GlassFish requires Java SE version 6. Your JDK is version 0

@adithyakhamithkar
Copy link
Owner

adithyakhamithkar commented Feb 2, 2017

So i suggest that you use the latest glassfish version.

Get the latest changes that i have checked in.
Please make this change in your group vars

glassfish_url : http://download.java.net/glassfish/4.1.1/release/glassfish-4.1.1.zip
glassfish_version : glassfish-4.1.1

@adithyakhamithkar
Copy link
Owner

I am still getting the same error :(

@adithyakhamithkar
Copy link
Owner

Try downgrading jdk to 8 it works 👍

@ghost
Copy link
Author

ghost commented Feb 3, 2017

Hi Adithya,

Thanks for checking! But my main question is: I am getting "stderr": "/bin/sh: 1: /etc/init.d/glassfish: not found" error in the Start Glassfish task.
It is not Java related issue.
Do you use Vagrant or any other tool beside ansible?

@adithyakhamithkar
Copy link
Owner

I use vagrant and my OS is Ubuntu. can you run the playbook with -vvvv lets debug i think it's a problem with your OS or your bash.

I can change it from shell to service. the playbook is not that optimized i can rewrite it.

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

1 participant