Porting Velocity application from Jboss3.2.3 to Jboss 4.0.5
-----------------------------------------------------------
Key: VELOCITY-497
URL: http://issues.apache.org/jira/browse/VELOCITY-497
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.4
Environment: Windows 200xp Sp2
Velocity 1.4
Jboss 4.0.5
Reporter: ashish
We have our application running fine on Jboss 3.2.3.
Now we are trying to port the same application to to Jboss 4.0.5.
We are using Velocity and JMX, Servlets, Hibernate, JBoss.
All the static content like Velocity vm files, css, js, gifs file are
not stored directly in parallel to web-inf.
We have stored them into some local docbase say C:\content folder
The above startgy works find with JBoss 3.2.3. and Velocity picks all the
references to images and js files from local docbase.
We are pointing to docbase through some configuration file with the help of
Velocity.
like in velocity.properties.
resource.loader = file
file.resource.loader.description = Velocity File Resource Loader
file.resource.loader.class =
org.apache.velocity.runtime.resource.loader.FileResourceLoader
And setting the docbase :-
OurVelocityServlet :
private VelocityEngine velocity;
velocity = new VelocityEngine();
ExtendedProperties p = new ExtendedProperties();
p.addProperty(VelocityEngine.RESOURCE_LOADER, "file");
p.addProperty("file.resource.loader.class",
FileResourceLoader.class.getName());
p.setProperty(VelocityEngine.FILE_RESOURCE_LOADER_PATH,
System.getProperty(_docBaseProp));
velocity.setExtendedProperties(p);
All vm and html files are being picked up from that docbase but not picking
images,css and js files.
Does anyone have some idea?Do we need to do some extra configuration setting
while moving from jboss 3.2.3 to jboss 4.0.5 with Velocity and Jboss
combination.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]