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

Could not request resources #29

Open
hjunkes opened this issue Oct 25, 2018 · 1 comment
Open

Could not request resources #29

hjunkes opened this issue Oct 25, 2018 · 1 comment

Comments

@hjunkes
Copy link

hjunkes commented Oct 25, 2018

Had to replace jackson-xxx jar's in glassfish/modules by version 2.5.1 ones.
(add jackson-module-jaxb-annotations-2.5.1.jar)
-rw-r--r-- 1 glassfish glassfishadm 39817 Feb 7 2015 jackson-annotations-2.5.1.jar
-rw-r--r-- 1 glassfish glassfishadm 229860 Feb 7 2015 jackson-core-2.5.1.jar
-rw-r--r-- 1 glassfish glassfishadm 1138921 Feb 7 2015 jackson-databind-2.5.1.jar
-rw-r--r-- 1 glassfish glassfishadm 32459 Feb 7 2015 jackson-module-jaxb-annotations-2.5.1.jar
-rw-r--r-- 1 glassfish glassfishadm 28723 Feb 7 2015 jackson-jaxrs-base-2.5.1.jar
-rw-r--r-- 1 glassfish glassfishadm 16692 Feb 7 2015 jackson-jaxrs-json-provider-2.5.1.jar

sudo rm jackson-annotations.jar
sudo rm jackson-core.jar
sudo rm jackson-databind.jar
sudo rm jackson-jaxrs-base.jar
sudo rm jackson-jaxrs-json-provider.jar

from maven2 repo
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.5.1/jackson-module-jaxb-annotations-2.5.1.jar .
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.5.1/jackson-annotations-2.5.1.jar
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.5.1/jackson-core-2.5.1.jar
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.5.1/jackson-databind-2.5.1.jar
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.5.1/jackson-jaxrs-base-2.5.1.jar
sudo wget http://central.maven.org/maven2/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.5.1/jackson-jaxrs-json-provider-2.5.1.jar

The cache must be deleted before glassfish is started again.
In /home/glassfish/glassfish/osgi
sudo rm -rf felix

@hjunkes
Copy link
Author

hjunkes commented Oct 29, 2018

in addition I had to rename
jackson-core-2.5.1.jar to jackson-core.jar in modules.

Got
stopping glassfish from /home/glassfish/bin
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonFactory
at com.sun.enterprise.admin.remote.reader.ProgressStatusDTOJsonProprietaryReader.(ProgressStatusDTOJsonProprietaryReader.java:57)
at com.sun.enterprise.admin.remote.reader.ProprietaryReaderFactory.(ProprietaryReaderFactory.java:60)
at com.sun.enterprise.admin.cli.AdminMain$2.run(AdminMain.java:272)
at java.lang.Thread.run(Thread.java:745)

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