On a hunch, I change the following JARs from
velocity-tools-struts0.1.jar
velocity-tools-view-0.3.jar
velocity-1.3.dev.jar
to
velocity-tools-struts0-1.jar
velocity-tools-view-0-3.jar
velocity-1-3-dev.jar
and it deployed. WebLogic must look for *.jar The other dots messed up it's
scan.
Re: Velocity-Tools / Struts
--------------------------------------------------------------------------------
From: Gabriel Sidler
Subject: Re: Velocity-Tools / Struts
Date: Sat, 19 Jan 2002 04:37:09 -0800
--------------------------------------------------------------------------------
Will,
I just downloaded the .war as well and tested it on a Tomcat 4.01
installation. Everything works flawlessly. The class that it's
complaining about is included in WEB-INF/lib/velocity-tools-view-0.3.jar
What is special about WebLogic 6.1SP2 that it cannot find this class?
Would it find the class if it's not contained in a jar? Maybe try to
unwrap velocity-tools-view-0.3.jar below WEB-INF/classes/
If anything about web development is difficult then it's these deployment
issues...
Gabe
Will Spies/Towers Perrin wrote:
>
> I did a quick deployment of your war and got this message from WebLogic
> 6.1SP2
>
> <[WebAppServletContext(7817190,velstruts,/velstruts)] Error loading
> servlet: "velocity">
> java.lang.ClassNotFoundException:
> org.apache.velocity.tools.view.servlet.VelocityViewServlet
> at
>
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:179)
> at
>
>weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
>
>weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
> at
>
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:583)
> at
>
>weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2221)
> at
>
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2165)
> at
>
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:892)
> at
>
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
> at
> weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
> at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> at weblogic.j2ee.Application.addComponent(Application.java:163)
> at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
> at
>
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
> at
>
>weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
> at
>
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
>weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
> at
>
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
> at
>
>weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
> at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
> at $Proxy37.addWebDeployment(Unknown Source)
> at
>
> _______________________
> Will Spies
> Towers Perrin
> Phone: (215)246-7145
> e-mail: [EMAIL PROTECTED]
>
>
>
> To:
[EMAIL PROTECTED]
> Ted Husted cc: (bcc: Will Spies/Towers
Perrin)
> <husted@apache Subject: Velocity-Tools /
Struts
> .org>
>
> 01/18/02 09:46
> AM
> Please respond
> to "Struts
> Users Mailing
> List"
>
>
>
> Will Spies/Towers Perrin wrote:
> > >>And Velocity can access the Struts controller too :)
> >
> > is this documented anywhere? Is this just in development now or is it
> part
> > of their release?
>
> It hasn't made it into the release yet, but the code is already working
> and seems mature. It's just a matter of making the Struts elements
> available as standard objects that Velocity can see.
>
> Really ~very~ cool. You can download the sample application WAR here.
> Very much worth a look.
>
> http://husted.com/struts/resources/velstruts.zip
>
> I'll be working on adding more documentation for this, and other
> contributions like the Commons-Validator and Tiles to the Struts User
> Guide.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Building Java web applications with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
>
> --
> To unsubscribe, e-mail: <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------------------------
Velocity-Tools / Struts, Ted Husted
Re: Velocity-Tools / Struts, Will Spies/Towers Perrin
Re: Velocity-Tools / Struts, Gabriel Sidler
<-- Chronological --> <-- Thread -->
Reply via email to
_______________________
Will Spies
Towers Perrin
Phone: (215)246-7145
e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>