You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Mark Whelan <Ma...@ibatech.com> on 2002/01/15 01:36:18 UTC

Problems deploying Velstruts.war to BES 5.0

G'day,

I built the velstruts.war from the source in cvs, and deployed it to Borland
Enterprise Server 5.0 (JDK1.3.1, Tomcat 4.0.1). When attempting to start one
of the example Velocity applications, Tomcat is reporting the Velocity
servlet is not available. A browse through the logs shows the following
error. Any suggestions as to the problem would be appreciated.

Cheers

Mark Whelan
IBA Health Ltd.
mark.whelan@ibatech.com

[Tue Jan 15 12:05:26 EST 2002] stdout:
StandardWrapper[/velstruts:velocity]: Marking servlet velocity as
unavailable
[Tue Jan 15 12:05:26 EST 2002] stdout:  StandardContext[/velstruts]: Servlet
/velstruts threw load() exception: javax.servlet.ServletException: Class
org.apache.velocity.tools.view.servlet.VelocityViewServlet is not a Servlet
[Tue Jan 15 12:05:26 EST 2002] stdout:  javax.servlet.ServletException:
Class org.apache.velocity.tools.view.servlet.VelocityViewServlet is not a
Servlet
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:883)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3331)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3490)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:466)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:678)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.startup.Catalina.deploy(Catalina.java:333)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
org.apache.catalina.startup.Catalina.load(Catalina.java:237)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.borland.enterprise.server.services.tomcat4.TomcatService.load(TomcatServ
ice.java:344)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.sun.server.ServiceManager.loadModule(ServiceManager.java:1895)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.borland.enterprise.server.PartitionModules.loadAll(PartitionModules.java
:117)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.sun.server.ServiceManager.loadAllModules(ServiceManager.java:1766)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.sun.server.ServiceManager.autoStartServices(ServiceManager.java:857)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.sun.server.ServiceManager.startPartitionServices(ServiceManager.java:703
)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.borland.enterprise.server.services.partition.PartitionServer.run(Partiti
onServer.java:308)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
java.lang.reflect.Method.invoke(Native Method)
[Tue Jan 15 12:05:26 EST 2002] stdout:  	at
com.borland.enterprise.server.services.partition.Partition.main(Partition.ja
va:146)


The contents of this e-mail (including any attachments) are intended only
for the person or entity to which this e-mail is addressed and may contain
confidential, privileged and/or commercially sensitive material.  If you are
not, or believe you may not be, the intended recipient, please advise the
sender immediately by return e-mail, delete this e-mail and destroy any
copies.

Re: Problems deploying Velstruts.war to BES 5.0

Posted by Gabriel Sidler <si...@teamup.ch>.
Mark Whelan wrote:
> 
> G'day,
> 
> I built the velstruts.war from the source in cvs, and deployed it to Borland
> Enterprise Server 5.0 (JDK1.3.1, Tomcat 4.0.1). When attempting to start one
> of the example Velocity applications, Tomcat is reporting the Velocity
> servlet is not available. A browse through the logs shows the following
> error. Any suggestions as to the problem would be appreciated.

Mark, 

Can you try the following:

I assume that Tomcat is configured to unwrap the velstruts.war 
file on startup. If not, please unwrap the file manually (using 
jar, winzip, etc.) and remove the velstruts.war.
Then, from the unwrapped directory hierarchy remove the file
velstruts/WEB-INF/lib/jakarta-servlet-api-4.jar. Restart the 
server and try again. 

I looking forward to your feedback.

Gabe







> Cheers
> 
> Mark Whelan
> IBA Health Ltd.
> mark.whelan@ibatech.com
> 
> [Tue Jan 15 12:05:26 EST 2002] stdout:
> StandardWrapper[/velstruts:velocity]: Marking servlet velocity as
> unavailable
> [Tue Jan 15 12:05:26 EST 2002] stdout:  StandardContext[/velstruts]: Servlet
> /velstruts threw load() exception: javax.servlet.ServletException: Class
> org.apache.velocity.tools.view.servlet.VelocityViewServlet is not a Servlet
> [Tue Jan 15 12:05:26 EST 2002] stdout:  javax.servlet.ServletException:
> Class org.apache.velocity.tools.view.servlet.VelocityViewServlet is not a
> Servlet
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:883)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3331)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3490)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:466)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:678)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.startup.Catalina.deploy(Catalina.java:333)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> org.apache.catalina.startup.Catalina.load(Catalina.java:237)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.borland.enterprise.server.services.tomcat4.TomcatService.load(TomcatServ
> ice.java:344)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.sun.server.ServiceManager.loadModule(ServiceManager.java:1895)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.borland.enterprise.server.PartitionModules.loadAll(PartitionModules.java
> :117)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.sun.server.ServiceManager.loadAllModules(ServiceManager.java:1766)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.sun.server.ServiceManager.autoStartServices(ServiceManager.java:857)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.sun.server.ServiceManager.startPartitionServices(ServiceManager.java:703
> )
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.borland.enterprise.server.services.partition.PartitionServer.run(Partiti
> onServer.java:308)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> java.lang.reflect.Method.invoke(Native Method)
> [Tue Jan 15 12:05:26 EST 2002] stdout:          at
> com.borland.enterprise.server.services.partition.Partition.main(Partition.ja
> va:146)
> 
> The contents of this e-mail (including any attachments) are intended only
> for the person or entity to which this e-mail is addressed and may contain
> confidential, privileged and/or commercially sensitive material.  If you are
> not, or believe you may not be, the intended recipient, please advise the
> sender immediately by return e-mail, delete this e-mail and destroy any
> copies.

--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>