Re: Problem with starting the samplecode-urgent help

2004-12-14 Thread Antony Paul
The error says that class strutsTutorial.UserRegistrationAction is not
found. Check whether class is there in WEB-INF/classes directroty

rgds
Antony Paul


On Mon, 13 Dec 2004 21:24:39 -0800, S.B. <[EMAIL PROTECTED]> wrote:
> No, it still doesn't work. I am copying the error I get when I give:
> http://localhost:8080/strutsTutorial/userRegistration.do
> 
> Can you tellme exactly where you are saying to change this?
> Also, I think it's the tilesprocessor request. I am not using tiles just
> default. Is default requestprocessor?
> If so, what do I add to the struts-config.xml? StrutsConsole is not
> giving any errors.
> here's the output I get:
> 
> INFO: Jk running ID=0 time=0/200
> config=C:\open_source\jakarta-tomcat-4.1.30\co
> nf\jk2.properties
> Dec 13, 2004 9:19:09 PM org.apache.struts.tiles.TilesRequestProcessor
> initDefini
> tionsMapping
> INFO: Tiles definition factory found for request processor ''.
> Dec 13, 2004 9:19:09 PM org.apache.struts.action.RequestProcessor
> processMapping
> 
> SEVERE: Invalid path /UserRegistration was requested
> Dec 13, 2004 9:19:18 PM org.apache.struts.action.RequestProcessor
> processActionC
> reate
> SEVERE: No action instance for path /userRegistration could be created
> java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1443)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1289)
> at
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
> a:207)
> at
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
> java:231)
> at
> org.apache.struts.action.RequestProcessor.processActionCreate(Request
> Processor.java:326)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> --
> 
> -Original Message-----
> From: Sebastián Gorgo [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 12:52 PM
> To: Struts Users Mailing List
> Subject: Re: Problem with starting the samplecode-urgent help
> 
> You must change "strutsTutorial.UserRegistrationAction" to
> "StrutsTutorial.UserRegistrationAction".
> Its case-sensitive.
> 
> S.B. wrote:
> > I have a created a subclass of Action, called UserRegistrationAction:
> > package StrutsTutorial; import javax.servlet.http.HttpServletRequest;
> > import javax.servlet.http.HttpServletResponse;
> >
> > import org.apache.struts.action.Action;
> > import org.apache.struts.action.ActionForm;
> > import org.apache.struts.action.ActionForward;
> > import org.apache.struts.action.ActionMapping;
> > public class UserRegistrationAction extends Action{
> > public ActionForward execute(
> >   ActionMapping mapping,
> >   ActionForm form,
> >   HttpServletRequest request,
> >   HttpServletResponse response)
> > throws Exception{
> >
> > return mapping.findForward("success");
> > }
> > }
> >
> > 
> > I have following struts-config file: (i have added the last action
> > mapping  > type="strutsTutorial.UserRegistrationAction"
> > parameter="/pages/regSuccess.jsp">
> >> path="/pages/strutsTutorial/regSuccess.jsp" />
> >   
> > )
> > 
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> > 
> >
> > 
> > 
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter="/pages/Welcome.jsp" />
> >
> > 
> >
> >> type="strutsTutorial.UserRegistrationAction"
> > parameter="/pages/regSuccess.jsp">
> >
> >path="/pages/strutsTutorial/regSuccess.jsp"
> > />
> >   
> >
> > 
> > --
> > The jsp file is just like hello world jsp.
> > I have UserRegistrationAction.class in the directory structure at:
> > C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegi
> > st
> > rationAction.class
> > Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
> > ---
> > What's the problem? When I give :
> > http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
> >

RE: Problem with starting the samplecode-urgent help

2004-12-13 Thread S.B.
No, it still doesn't work. I am copying the error I get when I give:
http://localhost:8080/strutsTutorial/userRegistration.do

Can you tellme exactly where you are saying to change this?
Also, I think it's the tilesprocessor request. I am not using tiles just
default. Is default requestprocessor?
If so, what do I add to the struts-config.xml? StrutsConsole is not
giving any errors.
here's the output I get:

INFO: Jk running ID=0 time=0/200
config=C:\open_source\jakarta-tomcat-4.1.30\co
nf\jk2.properties
Dec 13, 2004 9:19:09 PM org.apache.struts.tiles.TilesRequestProcessor
initDefini
tionsMapping
INFO: Tiles definition factory found for request processor ''.
Dec 13, 2004 9:19:09 PM org.apache.struts.action.RequestProcessor
processMapping

SEVERE: Invalid path /UserRegistration was requested
Dec 13, 2004 9:19:18 PM org.apache.struts.action.RequestProcessor
processActionC
reate
SEVERE: No action instance for path /userRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
--



-Original Message-
From: Sebastián Gorgo [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 12:52 PM
To: Struts Users Mailing List
Subject: Re: Problem with starting the samplecode-urgent help



You must change "strutsTutorial.UserRegistrationAction" to 
"StrutsTutorial.UserRegistrationAction".
Its case-sensitive.

S.B. wrote:
> I have a created a subclass of Action, called UserRegistrationAction: 
> package StrutsTutorial; import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> import org.apache.struts.action.Action;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionForward;
> import org.apache.struts.action.ActionMapping;
> public class UserRegistrationAction extends Action{
> public ActionForward execute(
>   ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response)
> throws Exception{
>   
> return mapping.findForward("success");
> }
> }
> 
> 
> I have following struts-config file: (i have added the last action 
> mapping  type="strutsTutorial.UserRegistrationAction"
> parameter="/pages/regSuccess.jsp">
>path="/pages/strutsTutorial/regSuccess.jsp" />
>   
> )
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="org.apache.struts.actions.ForwardAction"
> parameter="/pages/Welcome.jsp" />
> 
> 
> 
>type="strutsTutorial.UserRegistrationAction"
> parameter="/pages/regSuccess.jsp">
> 
>/>
>   
> 
> 
> --
> The jsp file is just like hello world jsp.
> I have UserRegistrationAction.class in the directory structure at: 
> C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegi
> st
> rationAction.class
> Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
> ---
> What's the problem? When I give :
> http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
> error:
> 
> Status report
> 
> message No action instance for path /UserRegistration could be created
> 
> description The server encountered an internal error (No action 
> instance for path /UserRegistration could be created) that prevented 
> it from fulfilling this request.
> =--
> Following is command line messages:
> -
> SEVERE: No action instance for path /UserRegistration could be created
> java.lang.ClassNotFoundException:
strutsTutorial.UserRegistrationAction
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1443)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1289)
> at 
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
> a:2

Re: Problem with starting the samplecode-urgent help

2004-12-13 Thread Sebastián Gorgo
You must change "strutsTutorial.UserRegistrationAction" to 
"StrutsTutorial.UserRegistrationAction".
Its case-sensitive.

S.B. wrote:
I have a created a subclass of Action, called UserRegistrationAction:
package StrutsTutorial;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class UserRegistrationAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{

return mapping.findForward("success");
}
}

I have following struts-config file: (i have added the last action
mapping



)
















--
The jsp file is just like hello world jsp.
I have UserRegistrationAction.class in the directory structure at:
C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegist
rationAction.class
Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
---
What's the problem? When I give :
http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
error:
Status report
message No action instance for path /UserRegistration could be created
description The server encountered an internal error (No action instance
for path /UserRegistration could be created) that prevented it from
fulfilling this request.
=--
Following is command line messages:
-
SEVERE: No action instance for path /UserRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:268)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

-
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]


Problem with starting the samplecode-urgent help

2004-12-13 Thread S.B.
I have a created a subclass of Action, called UserRegistrationAction:
package StrutsTutorial;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class UserRegistrationAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception{

return mapping.findForward("success");  
}
}


I have following struts-config file: (i have added the last action
mapping



)


























--
The jsp file is just like hello world jsp.
I have UserRegistrationAction.class in the directory structure at:
C:\\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegist
rationAction.class
Ant is ok. Building ok. Deployed war on tomcat 4.1. but-
---
What's the problem? When I give :
http://localhost:8080/strutsTutorial/UserRegistration.do it gives me
error:

Status report

message No action instance for path /UserRegistration could be created

description The server encountered an internal error (No action instance
for path /UserRegistration could be created) that prevented it from
fulfilling this request.
=--
Following is command line messages:
-
SEVERE: No action instance for path /UserRegistration could be created
java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav
a:207)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at
org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:268)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav



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