I've been trying to help Julia on the user list, as this is a user
question.  It looks like the velocity.properties are not being read
because the web.xml is not being loaded.  Somehow Tomcat is being told
to load the servlet class under the /Test path, without using the
web.xml that she created.  As evidence, note that the servlet-class in
web.xml is "/Test", but the actual class is "test.Test".  So i'm
thinking it has to do with the way Eclipse is being used to load the
servlet into Tomcat, but i don't use Eclipse so i can't help anymore
than that.

On 4/30/06, Llewellyn Falco <[EMAIL PROTECTED]> wrote:
um, so it would seem your properties file is not being read, otherwise
runtime.log would be there.
Default path of c:\ might be occurring because of the \ instead of a . but
who knows.

either way, you are not getting the profile you think you are,
and you are not getting path's you think you are, and you are doing it in a
way that i do not, so i'll have to pass you off to someone else who does
this sort of thing.

anyone?

llewellyn.
----- Original Message -----
From: "julia schmitz" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[email protected]>
Sent: Sunday, April 30, 2006 9:52 AM
Subject: Re: can not find velocity template vm


>
>
>
> Thanks, here is the result:
>
> 1) yes it was a double >
>
> 2) runtime.log = null
>
> 3)default path = C:\
>
> 4) eclipse warning when i start:
>
> 30.04.2006 17:51:03 org.apache.coyote.http11.Http11Protocol init
>
> INFO: Initializing Coyote HTTP/1.1 on http-80
>
> 30.04.2006 17:51:03 org.apache.catalina.startup.Catalina load
>
> INFO: Initialization processed in 1472 ms
>
> 30.04.2006 17:51:04 org.apache.catalina.core.StandardService start
>
> INFO: Starting service Catalina
>
> 30.04.2006 17:51:04 org.apache.catalina.core.StandardEngine start
>
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
>
> 30.04.2006 17:51:04 org.apache.catalina.core.StandardHost start
>
> INFO: XML validation disabled
>
> 30.04.2006 17:51:04 org.apache.catalina.core.StandardHost getDeployer
>
> INFO: Create Host deployer for direct deployment ( non-jmx )
>
> 30.04.2006 17:51:04 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\balancer.xml
>
> 30.04.2006 17:51:05 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\admin.xml
>
> 30.04.2006 17:51:05 org.apache.struts.util.PropertyMessageResources <init>
>
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
>
> 30.04.2006 17:51:05 org.apache.struts.util.PropertyMessageResources <init>
>
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
>
> 30.04.2006 17:51:06 org.apache.struts.util.PropertyMessageResources <init>
>
> INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
> returnNull=true
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\manager.xml
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\Velocity.xml
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\webdav.xml
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\servlets-examples.xml
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\jsp-examples.xml
>
> 30.04.2006 17:51:07 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\tomcat-docs.xml
>
> 30.04.2006 17:51:08 org.apache.catalina.core.StandardHostDeployer install
>
> INFO: Processing Context configuration file URL file:C:\Programme\Apache
> Software Foundation\Tomcat\conf\Catalina\localhost\ROOT.xml
>
> 30.04.2006 17:51:08 org.apache.coyote.http11.Http11Protocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-80
>
> 30.04.2006 17:51:08 org.apache.jk.common.ChannelSocket init
>
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
>
> 30.04.2006 17:51:08 org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/40 config=C:\Programme\Apache Software
> Foundation\Tomcat\conf\jk2.properties
>
> 30.04.2006 17:51:08 org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 4446 ms
>
>
>
> *Von:* "Velocity Developers List" <[email protected]>
> *Gesendet:* 30.04.06 18:27:34
> *An:* "Velocity Developers List" <[email protected]>
> *Betreff:* Re: can not find velocity template vm
>
>
> ok, so the if you just want to debug, allow these suggestions.
>
> 1) not sure if it was a copy/paste, but if it is there is a double >>
>> <param-value>>/WEB-INF/velocity.properties</param-value>
>
> 2) check that your properties are being loaded.
> System.out.println("runtime.log = " + new
> VelocityEngine().getProperty("runtime.log"));
>
>
> 3) check that you root path is what you think it is.
> System.out.println("default path = " + new
> File("/").getAbsolutePath());
>
> other points, not really related....
>
> 4) you mentioned you are using eclipse, pay attention to the warnings. it
> will show stuff like the double ;; and the imports, which are easy to
> clean
> with an organize imports (ctrl + shift + o)
>
> 5) likewise checkout veloeclipse for your templates
> Help -> Software Updates -> Find and Install... -> Search for new features
> to install -> Add Update Site... ->
>
> Name : Veloeclipse
>
> URL: http://propsorter.sourceforge.net/veloeclipse
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192*
> [http://f.web.de/?mc=021192]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to