RESOLVED: Velocity 3.5.84 and Servoy 2020.6 working?

Questions and answers on developing, deploying and using plugins and JavaBeans

RESOLVED: Velocity 3.5.84 and Servoy 2020.6 working?

Postby joe26 » Fri Sep 11, 2020 12:43 am

Dear Zod:

Velocity isn't running under 2020.6. I've re-installed and have been getting an error. Same setup as in 7.4.8.
So a web search indicated that server\conf\context.xml be modified from

Code: Select all
<Context useHttpOnly="true >


to

Code: Select all
<Context useHttpOnly="true" xmlBlockExternal="false" >


Not sure if this is a violation of web security, but at least it is functional.

I'm posting because when the issue is written, a solution sometimes becomes apparent...


Yay!
--Joe.

java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN], system ID [http://
java.sun.com/dtd/web-app_2_3.dtd] and base URI [file:/C:/Servoy_2020_6/application_server/server/webapps/eastwood/WEB-INF/web.xml] to a known, local entity.
at org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:155)
at java.xml/com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1493)
at org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml(WebXmlParser.java:119)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1115)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:776)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5063)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1841)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(UnknownSource)
at java.base/java.lang.Thread.run(Unknown Source)

Sep 10, 2020 4:54:39 PM org.apache.catalina.startup.ContextConfig configureStart

SEVERE: Marking this application unavailable due to previous error(s)
joe26
 
Posts: 127
Joined: Wed Jun 19, 2013 10:30 pm

Re: RESOLVED: Velocity 3.5.84 and Servoy 2020.6 working?

Postby ptalbot » Wed Sep 16, 2020 12:03 am

I've released v3.5.85 with a fix to the eastwood.war web.xml tag with a proper web-app tag declaration so you shouldn't need to alter your context.xml
https://www.servoyforge.net/news/615
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
User avatar
ptalbot
 
Posts: 1617
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 3 guests

cron