FAQ
[ http://issues.apache.org/jira/browse/VELTOOLS-64?page=all ]

Nathan Bubna updated VELTOOLS-64:
---------------------------------

Fix Version/s: 1.3
Description:
I have been using VelocityTools for years and have a project successfully running in production on standalone Tomcat 5.5. When I run the same war file on Geronimo 1.1.1, links do not render correctly. Geronimo also uses a 5.5 version of Tomcat in the standard distribution I am using.

I am using Velocity 1.5 beta 1 and VelocityTools 1.2 from Maven.

Given the following code that is parsed into a main file:

<a href="$link.setAction('/pub/jobpost/list/submit').addQueryData("c","$!countrySel").addQueryData("r","$!pop.popId")">$!pop.popName Jobs</a>

On Tomcat 5.5 standalone get:
http://www.jobbank.com/action/pub/jobpost/list/submit?c=US&r=CA

On Geronimo 1.1.1 with the same war file, we get:
http://action/pub/jobpost/list/submit?c=US&r=CA

The only difference obviously is the lack of domain name. Other links seem to work correctly that are referenced with an absolute path. For example:
<a href="/action/exec/resume/choice/setup" title="Click here"> shows the correct hostname in the front.


I was using a non-beta velocity, but moved up to using the beta to rule out this being the issue. I also did a search on the Geronimo distribution for any other file matching "velocity" but came up empty.

I am not in a rush for this fix, but I think it is important to know that it will work in a next 1.5 Velocity release else people will be constantly using snapshots rather then a steady 1.5 build if this is where the problem lies.

I am hoping it is somehow just a configuration issue, though I am using the most basic Geronimo setup.

was:
I have been using VelocityTools for years and have a project successfully running in production on standalone Tomcat 5.5. When I run the same war file on Geronimo 1.1.1, links do not render correctly. Geronimo also uses a 5.5 version of Tomcat in the standard distribution I am using.

I am using Velocity 1.5 beta 1 and VelocityTools 1.2 from Maven.

Given the following code that is parsed into a main file:

<a href="$link.setAction('/pub/jobpost/list/submit').addQueryData("c","$!countrySel").addQueryData("r","$!pop.popId")">$!pop.popName Jobs</a>

On Tomcat 5.5 standalone get:
http://www.jobbank.com/action/pub/jobpost/list/submit?c=US&r=CA

On Geronimo 1.1.1 with the same war file, we get:
http://action/pub/jobpost/list/submit?c=US&r=CA

The only difference obviously is the lack of domain name. Other links seem to work correctly that are referenced with an absolute path. For example:
<a href="/action/exec/resume/choice/setup" title="Click here"> shows the correct hostname in the front.


I was using a non-beta velocity, but moved up to using the beta to rule out this being the issue. I also did a search on the Geronimo distribution for any other file matching "velocity" but came up empty.

I am not in a rush for this fix, but I think it is important to know that it will work in a next 1.5 Velocity release else people will be constantly using snapshots rather then a steady 1.5 build if this is where the problem lies.

I am hoping it is somehow just a configuration issue, though I am using the most basic Geronimo setup.






Let's try to track this down before we release 1.3. Here's the email thread on the bug:

=========================================================================
I posted this earlier, but was not seeing it in the forum so trying again to post on Velocity and Geronimo 1.1.1.

I was not using a fully up to date version of Velocity, but it was a in-between-release containing the changes you mentioned I believe. To make sure, I upgraded to the 1.5 beta and am using VelocityTools 1.2 from Maven with the same result.

There is no file matching "velocity" in geronimo directory structure.

I ended up creating bug http://issues.apache.org/jira/browse/VELTOOLS-64

Let me know how I can help.

John Eichelsdorfer
The job bank http://www.jobbank.com

----- Original Message -----
From: Will Glass-Husain <wglass@forio.com>
Date: Sunday, September 17, 2006 7:26 pm
Subject: Re: Velocity-tools and geronimo
Where's the Velocity jar file? Is it in the webapp directory?

Could Geronimo have another Velocity jar in the container classpath?

Velocity 1.4 has a problem if it's in the container classpath, not the
webapp classpath. You might try Velocity 1.5-beta. (will be released
momentarily).
On 9/17/06, Nathan Bubna wrote:
Hmm. Seems like a difference in the servlet implementation is
likely... of course that's just guessing. and it may be that
Geronimo isn't wrong, but just interprets the spec differently.
it's> hard to say without looking into it more. Would you open a
JIRA issue
for this?

http://issues.apache.org/jira/browse/VELTOOLS

and perhaps include example output from that VTL snippet you sent for
Tomcat and Geronimo as references for comparison?

that'd be great!
On 9/17/06, jeichels@optonline.net wrote:
Hey all,

Velocity has been working sweet for quite some time, but I am
working on upgrading the system to using Geronimo 1.1 from Tomcat
5.5.*.> >
When I run my war under Tomcat, it works perfectly. When I
run the same war under Geronimo, it ...almost works. Screens are
generated and some links work.
However, whereever I use a link as follows, the host is left
off of the front of the URL once it is generated. Again this does
not happen under just Tomcat.

$!pop.pName


Any ideas?


John Eichelsdorfer
The job bank http://www.jobbank.com





*************************************
16:03:36,718 INFO [ValidatorPlugIn] Loading validation rules
file from '/WEB-IN
F/validator-rules.xml'
16:03:36,765 INFO [ValidatorPlugIn] Loading validation rules
file from '/WEB-IN
F/validation.xml'
16:03:37,437 INFO [TilesPlugin] Tiles definition factory
loaded for module ''.
16:03:37,921 INFO [ServletToolboxManager] Using config file
'/WEB-INF/toolbox.x
ml'
16:03:37,999 INFO [ServletToolboxManager] Toolbox setup complete.
started in 10.282s
Startup completed in 42 seconds
Listening on Ports:
1099 0.0.0.0 RMI Naming
1527 0.0.0.0 Derby Connector
4201 0.0.0.0 ActiveIO Connector EJB
4242 0.0.0.0 Remote Login Listener
8009 0.0.0.0 Tomcat Connector AJP
8080 0.0.0.0 Tomcat Connector HTTP
8443 0.0.0.0 Tomcat Connector HTTPS
9999 0.0.0.0 JMX Remoting Connector
61616 0.0.0.0 ActiveMQ Message Broker Connector

Started Application Modules:
EAR: geronimo/webconsole-tomcat/1.1/car
RAR: geronimo/activemq/1.1/car
RAR: geronimo/system-database/1.1/car
WAR: com.jmjmedia.jobbank/jobbank/1158515709468/war
WAR: geronimo/remote-deploy-tomcat/1.1/car

Web Applications:
http://THOR:8080/
http://THOR:8080/console
http://THOR:8080/console-standard
http://THOR:8080/remote-deploy

Geronimo Application Server started
16:05:18,077 INFO [TilesRequestProcessor] Tiles definition
factory found for request processor ''.
Geronimo 1.1.1 with Tomcat install fails to render links correctly
------------------------------------------------------------------

Key: VELTOOLS-64
URL: http://issues.apache.org/jira/browse/VELTOOLS-64
Project: VelocityTools
Issue Type: Bug
Components: VelocityStruts
Affects Versions: 1.2
Reporter: John Eichelsdorfer
Priority: Critical
Fix For: 1.3


I have been using VelocityTools for years and have a project successfully running in production on standalone Tomcat 5.5. When I run the same war file on Geronimo 1.1.1, links do not render correctly. Geronimo also uses a 5.5 version of Tomcat in the standard distribution I am using.
I am using Velocity 1.5 beta 1 and VelocityTools 1.2 from Maven.
Given the following code that is parsed into a main file:
<a href="$link.setAction('/pub/jobpost/list/submit').addQueryData("c","$!countrySel").addQueryData("r","$!pop.popId")">$!pop.popName Jobs</a>
On Tomcat 5.5 standalone get:
http://www.jobbank.com/action/pub/jobpost/list/submit?c=US&r=CA
On Geronimo 1.1.1 with the same war file, we get:
http://action/pub/jobpost/list/submit?c=US&r=CA
The only difference obviously is the lack of domain name. Other links seem to work correctly that are referenced with an absolute path. For example:
<a href="/action/exec/resume/choice/setup" title="Click here"> shows the correct hostname in the front.
I was using a non-beta velocity, but moved up to using the beta to rule out this being the issue. I also did a search on the Geronimo distribution for any other file matching "velocity" but came up empty.
I am not in a rush for this fix, but I think it is important to know that it will work in a next 1.5 Velocity release else people will be constantly using snapshots rather then a steady 1.5 build if this is where the problem lies.
I am hoping it is somehow just a configuration issue, though I am using the most basic Geronimo setup.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 9 | next ›
Discussion Overview
groupdev @
categoriesvelocity
postedSep 27, '06 at 5:31a
activeJan 16, '07 at 4:51p
posts9
users2
websitevelocity.apache.org

2 users in discussion

Anonymous: 7 posts Nathan Bubna (JIRA): 2 posts

People

Translate

site design / logo © 2021 Grokbase