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

Unsatisfied dependencies error when deploying on Glassfish #2353

Open
sindelar-fr opened this issue Sep 11, 2018 · 1 comment
Open

Unsatisfied dependencies error when deploying on Glassfish #2353

sindelar-fr opened this issue Sep 11, 2018 · 1 comment
Labels
question webapp web application

Comments

@sindelar-fr
Copy link

sindelar-fr commented Sep 11, 2018

As you can see here:
server.log

I'm unable to deploy the webapp to glassfish due to some unsatisfied dependencies in Suggester (most likely).

I'm running Oracle Linux 7.5, Glassfish 5.0, Oracle JDK 1.8.0_181. I tried opengrok-1.1 rc39 and rc41.

@ahornace
Copy link
Contributor

I'm not sure if it is a bug or a feature of GlassFish. However, proper binding is specified in SuggesterAppBinder...

I just tried adding @RequestScoped to the REST API endpoints (annotated with @Path) and to SuggesterService and SuggesterServiceImpl. (as suggested here http://mjremijan.blogspot.com/2016/09/cdi-inject-beans-into-path-jax-rs.html)

I'm not sure if this is desired or if it somehow hampers Tomcat.

Still, if the annotations would be that needed then I don't get why it works on Tomcat since Jersey is taking care of the injection. (and Tomcat should not have any saying in that)

Anyway, with the workaround applied I was able to deploy the application but I got another error:

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6199: Generated servlet error:
source value 1.5 is obsolete and will be removed in a future release

PWC6199: Generated servlet error:
target value 1.5 is obsolete and will be removed in a future release

PWC6199: Generated servlet error:
To suppress warnings about obsolete options, use -Xlint:-options.

PWC6197: An error occurred at line: 47 in the jsp file: /menu.jspf
PWC6199: Generated servlet error:
diamond operator is not supported in -source 1.5
  (use -source 7 or higher to enable diamond operator)

It seems that it is trying to compile the jsp with Java 5 version. Has GlassFish even worked anytime recently? I will try to look at it in more detail later.

@vladak vladak added the webapp web application label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question webapp web application
Projects
None yet
Development

No branches or pull requests

3 participants