tradeJmark Posted March 13, 2017 Posted March 13, 2017 Hello, all,I was wondering if the Java API for JSON Processing could be enabled on Tommy so that it could be used with JSP. I think all that would need to be done would be to have the jar files for the API and library placed in whatever classpath is being used by Tomcat. If you are interested in doing this, the jar files are located here:http://search.maven.org/remotecontent?filepath=javax/json/javax.json-api/1.0/javax.json-api-1.0.jarhttp://search.maven.org/remotecontent?filepath=org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jarThank you for considering this.-Tim Meredith
tradeJmark Posted March 15, 2017 Author Posted March 15, 2017 UPDATE:Earlier today, my code using the API started working without my having changed anything. The libraries I wished to use were in a WEB-INF/lib folder, and those are the ones now being used, despite the fact that this didn't work initially and I haven't changed anything to make it work. Since then, I have added another library in the same folder, but as of now am unable to use it with JSP. Does Tomcat do some sort of periodic sweep to update the libraries it recognizes for me to use?If anyone could help clear up my confusion, I would appreciate it.-Tim Meredith
wolstech Posted March 15, 2017 Posted March 15, 2017 I don't know for sure, but my guess is that tomcat probably has to be restarted to see them. That happens periodically for reasons like new accounts getting it enabled, so something/someone else on the server likely did something that triggered a restart and it found your libs at the same time.
tradeJmark Posted March 16, 2017 Author Posted March 16, 2017 This has maybe turned into more of a questions thread than a customer service one, but does anyone know of any way for me to force Tomcat to recognize libraries that my JSP pages need to use? Or is my best bet on a free service (not a complaint, I understand the limits of what you're doing, and I really appreciate it) to just wait until someone triggers a Tomcat restart?
wolstech Posted March 16, 2017 Posted March 16, 2017 You can always ask for a root admin to restart it for you. Best bet is to develop locally and then upload everything you'll end up needing at once, then ask us to restart it for you.
tradeJmark Posted March 16, 2017 Author Posted March 16, 2017 Actually, would you mind doing that whenever you get a chance? I've uploaded all the Java libraries that I plan to for the foreseeable future.
wolstech Posted March 16, 2017 Posted March 16, 2017 Escalating. Krydos will be able to confirm that tomcat needing restarted is the reason for this and restart it if so. 1
Recommended Posts