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

org.apache.jasper.compiler.disablejsr199 is no longer present in Jetty 9.3+ #706

Closed
joakime opened this issue Jul 8, 2016 · 8 comments
Closed
Assignees

Comments

@joakime
Copy link
Contributor

joakime commented Jul 8, 2016

The documentation has several mentions of it, along with the jvm.mod

We should remove these references in the code, test cases, and documentation.

The existing documentation should be updated to document how to use ECJ vs Java SDK for JSP compilation.

@joakime
Copy link
Contributor Author

joakime commented Jul 8, 2016

@janbartel can you explain to @WalkerWatch how the switch between ECJ vs JDK is now done?

@janbartel
Copy link
Contributor

Since switching to use Jasper from Apache (instead of Glassfish) in jetty-9.2 and above, compilation is only supported with ECJ - Apache Jasper has never supported the jdk compiler as did Glassfish. Thus, we supply the necessary eclipse java compiler jars with the jetty distro.

The only other compilation alternatives that Apache Jasper supports are 1. Ant or 2. a custom compiler.

For compilation with Ant, you need to:

  • set the servlet init-param "compiler" on the org.eclipse.jetty.jsp.JettyJspServlet to be one of the values supported by Ant's javac task: http://ant.apache.org/manual/Tasks/javac.html#compilervalues. The JettyJspServlet is defined in webdefault.xml: see the documentation section on changing values defined in webdefault.xml.
  • supply all the Ant-related jars and ensure they are on the classpath

To use a custom compiler:

  • write a class that extends org.apache.jasper.compiler.Compiler and ensure it is on the classpath
  • set the JettyJspServlet init-param "compilerClassName" to the name of the custom class

@joakime
Copy link
Contributor Author

joakime commented Jul 13, 2016

@janbartel we should remove all of the references to this org.apache.jasper.compiler.disablejsr199 attribute in the jetty-9.3.x branch then.

@joakime
Copy link
Contributor Author

joakime commented Jul 13, 2016

@janbartel the documentation at jetty-documentation/src/main/asciidoc/configuring/jsp/configuring-jsp.adoc still needs to be updated.

@WalkerWatch
Copy link
Contributor

@joakime @janbartel I removed references to disablejsr199 in the documentation as part of #712. I was hoping to follow up to see if additional changes need made.

@joakime
Copy link
Contributor Author

joakime commented Jul 13, 2016

@WalkerWatch its still present in the documentation.

[jetty-9.3.x]$ git pull origin jetty-9.3.x
X11 forwarding request failed on channel 0
Already up-to-date.
[jetty-9.3.x]$ git grep -n jsr199
jetty-documentation/src/main/asciidoc/configuring/jsp/configuring-jsp.adoc:182:// This is best done when using the standalone distro by uncommenting the System property `org.apache.jasper.compiler.disablejsr199` in the jsp link:#startup-modules[module]:
jetty-documentation/src/main/asciidoc/configuring/jsp/configuring-jsp.adoc:186://  -Dorg.apache.jasper.compiler.disablejsr199=true

@janbartel
Copy link
Contributor

@joakime I didn't want to remove that property from the FragmentActivator class just in case people were deploying jetty using the glassfish jsp bundles. But if its gone, its gone and we should update the osgi documentation to mention that only the apache jsp bundles are supported.

@WalkerWatch
Copy link
Contributor

@joakime I commented it out pending any other changes. I will remove it wholly.

jmcc0nn3ll added a commit that referenced this issue Jul 14, 2016
Chapter 9 cleanup and removed doc reference to disablejsr for #706.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants