[ 
https://issues.apache.org/jira/browse/VELOCITY-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17307743#comment-17307743
 ] 

David Ruiz de Azua commented on VELOCITY-942:
---------------------------------------------

Hi Michael,

All new Java application servers like Tomcat 10, Glassfish, Open Liberty, IBM 
Websphere have migrated from javax to jakarta namespaces and there is no trace 
of javax anymore. 

Currently Migrating from Tomcat 9 to Tomcat 10 and getting the below exception.

SEVERE: Exception Processing ErrorPage[errorCode=0, 
location=/velocity/error/notFound.vm] *jakarta.servlet.ServletException: Error 
instantiating servlet class 
[org.apache.velocity.tools.view.VelocityViewServlet* because extends from 
*javax*.

I believe that anybody who wants to run Velocity into Jakarta servers won't be 
able because of this dependency.

I am doing more research on this at the moment and checking how to handle 2 
different versions of *HttpServlet* in the server or if there is any workaround.

Thanks for your quick response.

 

> VelocityViewServlet extending from jakarta.servlet instead of javax.servlet
> ---------------------------------------------------------------------------
>
>                 Key: VELOCITY-942
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-942
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>            Reporter: David Ruiz de Azua
>            Priority: Trivial
>
> To whom may concern, 
> Currently VelocityViewServlet extends from javax rather than jakarta.
> Due the cutover from Java to Jakarta, *is there any plan to make Apache 
> Velocity compatible with Servlet 5.0?*
> Not sure if there are any plans to make the transition to Jakarta namespace 
> and if there is any ETA for it. 
> [https://jakarta.ee/specifications/servlet/5.0/apidocs/jakarta/servlet/http/httpservlet]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to