BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Struts error !?!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
Adam Shepherd
Guest





PostPosted: Mon Sep 08, 2003 9:57 pm    Post subject: Struts error !?! Reply with quote



Hello,

We are setting up a Struts environment using TomCat using JBuilder 9.0 and
I'm getting the following message.


StandardContext[/common]: Servlet /common threw load() exception:
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet

Does anyone have some insight. We are stuck in the water until we figure
this out. It is extended from an object that is a Servlet so I'm stumped.

Thanks

Adam Shepherd



Back to top
Ken Sipe
Guest





PostPosted: Tue Sep 09, 2003 3:59 am    Post subject: Re: Struts error !?! Reply with quote



Adam,
I'm just guessing from the name, but it appears you are replacing the
RequestProcessor in struts. If this is the case, the class such not
extend servlet, it should extend org.apache.struts.action.RequestProcessor.
It would then need to registered in the struts-config file for your case:

<controller
processorClass="com.lf.csg.common.struts.CustomRequestProcessor" />

You also need to be careful if you are using tiles. The TilesPlugin
will replace this defined RequestProcess unless it extends the
TilesRequestProcessor. SO... extend that if you are using tiles.

Don't know if this is helpful or not. It is a common error. Post which
struts version you are using and if you are really trying to create a
request processor or not.

Ken

Adam Shepherd wrote:
Quote:
Hello,

We are setting up a Struts environment using TomCat using JBuilder 9.0 and
I'm getting the following message.


StandardContext[/common]: Servlet /common threw load() exception:
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet

Does anyone have some insight. We are stuck in the water until we figure
this out. It is extended from an object that is a Servlet so I'm stumped.

Thanks

Adam Shepherd




Back to top
Adam Shepherd
Guest





PostPosted: Tue Sep 09, 2003 5:33 pm    Post subject: Re: Struts error !?! Reply with quote



Ken,

What I'm trying to do is to use my own Customer RequestProcessor. I extended
the RequestProcessor class. I'm using Struts 1.1.

I have the controller settings in the struts config file that you have
below, but someone suggest using ActionServlet in the Web.xml file. I've
done that and it appears to resolve the "not a servlet" error message. Now
I'm getting Digester error messages so I assume that it's working.

Is this how extending the RequestProcessor is done in struts??

Thanks

Adam


"Ken Sipe" <kensipe (AT) codementor (DOT) net> wrote

Quote:
Adam,
I'm just guessing from the name, but it appears you are replacing the
RequestProcessor in struts. If this is the case, the class such not
extend servlet, it should extend
org.apache.struts.action.RequestProcessor.
It would then need to registered in the struts-config file for your case:

controller
processorClass="com.lf.csg.common.struts.CustomRequestProcessor" /

You also need to be careful if you are using tiles. The TilesPlugin
will replace this defined RequestProcess unless it extends the
TilesRequestProcessor. SO... extend that if you are using tiles.

Don't know if this is helpful or not. It is a common error. Post which
struts version you are using and if you are really trying to create a
request processor or not.

Ken

Adam Shepherd wrote:
Hello,

We are setting up a Struts environment using TomCat using JBuilder 9.0
and
I'm getting the following message.


StandardContext[/common]: Servlet /common threw load() exception:
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet

Does anyone have some insight. We are stuck in the water until we figure
this out. It is extended from an object that is a Servlet so I'm
stumped.

Thanks

Adam Shepherd







Back to top
Ken Sipe
Guest





PostPosted: Wed Sep 10, 2003 5:06 pm    Post subject: Re: Struts error !?! Reply with quote

yes. This that is how to extend RequestProcessor. And I assumed that
you had the ActionServlet configured in the web.xml file. Additionally
make sure that the ActionServlet is set to load on startup. It is
necessary if the first page a user hits is a Struted JSP without going
through an action class.

Ken
Adam Shepherd wrote:
Quote:
Ken,

What I'm trying to do is to use my own Customer RequestProcessor. I extended
the RequestProcessor class. I'm using Struts 1.1.

I have the controller settings in the struts config file that you have
below, but someone suggest using ActionServlet in the Web.xml file. I've
done that and it appears to resolve the "not a servlet" error message. Now
I'm getting Digester error messages so I assume that it's working.

Is this how extending the RequestProcessor is done in struts??

Thanks

Adam


"Ken Sipe" <kensipe (AT) codementor (DOT) net> wrote in message
news:3f5d5071 (AT) newsgroups (DOT) borland.com...

Adam,
I'm just guessing from the name, but it appears you are replacing the
RequestProcessor in struts. If this is the case, the class such not
extend servlet, it should extend

org.apache.struts.action.RequestProcessor.

It would then need to registered in the struts-config file for your case:

controller
processorClass="com.lf.csg.common.struts.CustomRequestProcessor" /

You also need to be careful if you are using tiles. The TilesPlugin
will replace this defined RequestProcess unless it extends the
TilesRequestProcessor. SO... extend that if you are using tiles.

Don't know if this is helpful or not. It is a common error. Post which
struts version you are using and if you are really trying to create a
request processor or not.

Ken

Adam Shepherd wrote:

Hello,

We are setting up a Struts environment using TomCat using JBuilder 9.0

and

I'm getting the following message.


StandardContext[/common]: Servlet /common threw load() exception:
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet
javax.servlet.ServletException: Class
com.lf.csg.common.struts.CustomRequestProcessor is not a Servlet

Does anyone have some insight. We are stuck in the water until we figure
this out. It is extended from an object that is a Servlet so I'm

stumped.

Thanks

Adam Shepherd







Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.