Re: Catalina complaining abt Action class not being servlet??
Wim Fournier wrote: Hi all, Anyone knows why catalina complains abt my action servlet not being a servlet?? It extends Action and imports: [snipped] Because actions aren't servlets.. ActionServlet is, Actions and their subclasses aren't -- dIon Gillard, Multitask Consulting http://www.multitask.com.au/developers -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Catalina complaining abt Action class not being servlet??
-Original Message- From: dion [mailto:[EMAIL PROTECTED]] Sent: dinsdag 15 januari 2002 14:16 To: Struts Users Mailing List Subject: Re: Catalina complaining abt Action class not being servlet?? Wim Fournier wrote: Hi all, Anyone knows why catalina complains abt my action servlet not being a servlet?? It extends Action and imports: [snipped] Because actions aren't servlets.. ActionServlet is, Actions and their subclasses aren't Oeps... didn't notice that. Fortunately there are people who are reading more than I do ;-) tomK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Catalina complaining abt Action class not being servlet??
On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen (TeleRelay) wrote: Probably a conflict between servlet 2.2 and 2.3 spec. Try removing all servlet*.jar from all directories under catalina, except the one in %CATALINA_HOME%/lib/** hth, tomK root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# find -name *servlet*jar ./catalina/common/lib/servlet.jar ./catalina/server/lib/servlets-manager.jar ./catalina/server/lib/servlets-invoker.jar ./catalina/server/lib/servlets-snoop.jar ./catalina/server/lib/servlets-default.jar ./catalina/server/lib/servlets-cgi.renametojar ./catalina/server/lib/servlets-ssi.renametojar ./catalina/server/lib/servlets-webdav.jar ./catalina/server/lib/servlets-common.jar root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# and i use the first in my CL to compile, my CL also contains $JBOSS_DIST/client/jboss-j2ee.jar and usr/local/jdk1.3.1_02/lib/tools.jar and ./WEB-INF/lib/struts.jar problem persists -Original Message- From: Wim Fournier [mailto:[EMAIL PROTECTED]] Sent: dinsdag 15 januari 2002 14:15 To: [EMAIL PROTECTED] Subject: Catalina complaining abt Action class not being servlet?? Hi all, Anyone knows why catalina complains abt my action servlet not being a servlet?? It extends Action and imports: import java.io.IOException; import java.util.Hashtable; import java.util.Locale; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionServlet; import org.apache.struts.util.MessageResources; import org.apache.struts.util.PropertyUtils; full error: [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cdexample]: Servlet /cdexample threw load() exception javax.servlet.ServletException: Class nl.kern.j2ee.sample.struts.ListCDAction is not a Servlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper. java:824) at org.apache.catalina.core.StandardContext.loadOnStartup(Standar dContext.java:3267) at org.apache.catalina.core.StandardContext.start(StandardContext .java:3384) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase. java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebCont ext(EmbeddedCatalinaServiceSX.java:428) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy (EmbeddedCatalinaServiceSX.java:282) at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer .java:191) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. java:1523) at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505) at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploye r.java:459) at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl. java:1523) at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395) at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233) at java.lang.Thread.run(Thread.java:484) [ERROR,EmbeddedCatalinaServiceSX] - Root Cause - java.lang.ClassCastException: nl.kern.j2ee.sample.struts.ListCDAction at org.apache.catalina.core.StandardWrapper.load(StandardWrapper. java:820) at org.apache.catalina.core.StandardContext.loadOnStartup(Standar dContext.java:3267) at org.apache.catalina.core.StandardContext.start(StandardContext .java:3384) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase. java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebCont ext(EmbeddedCatalinaServiceSX.java:428) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy (EmbeddedCatalinaServiceSX.java:282) at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer .java:191) at java.lang.reflect.Method.invoke(Native
RE: Catalina complaining abt Action class not being servlet??
-Original Message- From: Wim Fournier [mailto:[EMAIL PROTECTED]] Sent: dinsdag 15 januari 2002 14:28 To: Struts Users Mailing List Subject: Re: Catalina complaining abt Action class not being servlet?? On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen (TeleRelay) wrote: Probably a conflict between servlet 2.2 and 2.3 spec. Try removing all servlet*.jar from all directories under catalina, except the one in %CATALINA_HOME%/lib/** hth, tomK root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# find -name *servlet*jar ./catalina/common/lib/servlet.jar ./catalina/server/lib/servlets-manager.jar ./catalina/server/lib/servlets-invoker.jar ./catalina/server/lib/servlets-snoop.jar ./catalina/server/lib/servlets-default.jar ./catalina/server/lib/servlets-cgi.renametojar ./catalina/server/lib/servlets-ssi.renametojar ./catalina/server/lib/servlets-webdav.jar ./catalina/server/lib/servlets-common.jar root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# and i use the first in my CL to compile, my CL also contains $JBOSS_DIST/client/jboss-j2ee.jar That's where I know the problem from: running a J2EE app under catalina doesn't work right, unless you adapt the j2ee.jar by removing all its javax.servlet.** components. Don't know for sure if this is the problem in your case (and whether the problem still exists, must be about 8 months since I last deployed a J2EE app), but it's worth the shot, isn't it? tomK -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Catalina complaining abt Action class not being servlet??
snap That's where I know the problem from: running a J2EE app under catalina doesn't work right, unless you adapt the j2ee.jar by removing all its javax.servlet.** components. Don't know for sure if this is the problem in your case (and whether the problem still exists, must be about 8 months since I last deployed a J2EE app), but it's worth the shot, isn't it? luckily my jboss-j2ee.jar doesnt contain servlet stuff ;o) tomK -- 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]
Re: Catalina complaining abt Action class not being servlet??
Wim Fournier wrote: bash me on the head and call me stupid .. ;) consider yourself bashed...although public oopses are more than enough :) My bad.. I have been a little enthousiastic with find/replace ;o) My web.xml action element containted an Action class instead of the org.apache.struts.Actionsomething tnx all! [snippity] -- dIon Gillard, Multitask Consulting http://www.multitask.com.au/developers -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]