Velocity error status 404

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Velocity error status 404

Postby pasin » Fri May 03, 2019 2:50 pm

Hi, we are migrating the Servoy's versione from 5.2.18 to 2019.
The solution works "well" but i am not able to use the Velocity plugin. On my developer the plugin (version 3.5.67) works perfectly and if i call for example the URL "http://127.0.0.1:8080/eastwood/genbc?type=code39&fmt=png&msg=7-8B5334-2&res=384&hrsize=8pt&hrfont=Arial,Helvetica,Sans-serif&height=0.896cm" i get the image.
When i deploy my solution on the server (the plugin is installed correctly, i think) i can't use the plugin.. if i call the URL "http://<SERVER_IP>:8080/eastwood/genbc?type=code39&fmt=png&msg=7-8B5334-2&res=384&hrsize=8pt&hrfont=Arial,Helvetica,Sans-serif&height=0.896cm" return a 404 error. (Look the attached)
Am i doing something wrong?

PS: The situation doesn't change if i call "http://<SERVER_IP>:8080/eastwood/"

Thanks
Attachments
velocity.png
Error 404
velocity.png (36.69 KiB) Viewed 2675 times
pasin
 
Posts: 9
Joined: Thu Feb 20, 2014 11:38 am
Location: Milan

Re: Velocity error status 404

Postby mboegem » Sat May 04, 2019 4:06 pm

Hi,

I suspect that the problem is the way tomcat handles the import.
Can you launch your solution or servoy-admin page and check what the url looks like?
Most likely it does have an additional 'context' name in the url and you need to modify the url as this:
http://<SERVER_IP>:8080/<SOLUTIONNAME>/eastwood/genbc?type=code39&fmt=png&msg=7-8B5334-2&res=384&hrsize=8pt&hrfont=Arial,Helvetica,Sans-serif&height=0.896cm

Hope that helps.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Velocity error status 404

Postby ptalbot » Wed May 08, 2019 12:02 am

I haven't tested Tomcat 8.5.9 but there shouldn't be any problem.

Did you deploy the eastwood.war in /Tomcat/webapps/ ?
Does it look like the eastwood.war is loaded in the Tomcat manager?

The "http://<SERVER_IP>:8080/eastwood/genbc?type=code39&fmt=png&msg=7-8B5334-2&res=384&hrsize=8pt&hrfont=Arial,Helvetica,Sans-serif&height=0.896cm" URL looks correct to me (eastwood being it's own war, the context in this case is really "eastwood", not SOLUTIONNAME, Marc!)
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Velocity error status 404

Postby pasin » Thu May 16, 2019 11:41 am

Hi,
we solved the problem modifing the file "web.xml" inside the package eastood.war
The problem comes with the last Tomcat version.
Sobstitute the old header with the code below and it will works fine.

"<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">"
pasin
 
Posts: 9
Joined: Thu Feb 20, 2014 11:38 am
Location: Milan


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 6 guests