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

Compile error when running with Java 10 #76

Closed
tnguyen14 opened this issue Jul 11, 2018 · 3 comments · Fixed by #305
Closed

Compile error when running with Java 10 #76

tnguyen14 opened this issue Jul 11, 2018 · 3 comments · Fixed by #305

Comments

@tnguyen14
Copy link
Contributor

I am running this locally on my mac with Java 10, and the server started fine, but on first request, I am getting the following error:

Jul 11, 2018 7:28:14 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /Users/tnguyen14/github/plantuml/plantuml-server/target/tmp/jsp/org/apache/jsp/error_jsp.java
2018-07-11 19:28:14.226:WARN:oejs.ErrorPageErrorHandler:EXCEPTION
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6199: Generated servlet error:|Source option 5 is no longer supported. Use 6 or later.||PWC6199: Generated servlet error:|Target option 1.5 is no longer supported. Use 1.6 or later.||
        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126)
        at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
        at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
@arnaudroques
Copy link
Contributor

I'm confused because we are targetting 1.6 in the pom file
( https://github.com/plantuml/plantuml-server/blob/master/pom.xml )
Have someone any idea about this ?

@kasra0
Copy link

kasra0 commented Dec 24, 2018

Hello,

i think i am running on the same issue ( windows 10 , jdk-11.0.1 ) the server started fine either and when i request http://localhost:8080/plantuml ->

server side error :

dec. 24, 2018 3:12:02 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: D:\repositories\plantuml-server\target\tmp\jsp\org\apache\jsp\index_jsp.java
2018-12-24 15:12:02.301:WARN:oejs.ServletHandler:/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP||PWC6199: Generated servlet error:|Source option 5 is n o longer supported. Use 6 or later.||PWC6199: Generated servlet error:|Target option 1.5 is no longer supported. Use 1.6 or later.||
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:126)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)

thanks for your help.

@vadimpanin
Copy link

This pull-request / diff fixes the error on current master:
8502a4e

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

Successfully merging a pull request may close this issue.

4 participants