Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found

2018-06-30 Thread ssmtpmailtesting ssmtpmailtesting
I solved the problem, this is web.xml



http://java.sun.com/xml/ns/j2ee;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;>

Archetype Created Web Application


struts2

org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter



struts2
/*



index.jsp



On Sat, Jun 30, 2018 at 7:52 PM, Dave Newton  wrote:
> That means you're hitting a JSP page with S2 tags without having run
> through an S2 request process, e.g., hitting a JSP page directly.
>
> On Sat, Jun 30, 2018 at 9:14 AM ssmtpmailtesting ssmtpmailtesting <
> ssmtpmailtest...@gmail.com> wrote:
>
>> struts.xml =>
>>
>> 
>> > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
>> "http://struts.apache.org/dtds/struts-2.5.dtd;>
>> 
>> 
>>
>> 
>> 
>> /index.jsp
>> 
>>
>> > method="execute">
>> /HelloWorld.jsp
>> 
>> 
>> 
>>
>>
>> web.xml
>>
>> 
>> > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
>> "http://struts.apache.org/dtds/struts-2.5.dtd;>
>> 
>> 
>>
>> 
>> 
>> /index.jsp
>> 
>>
>> > method="execute">
>> /HelloWorld.jsp
>> 
>> 
>> 
>>
>> Still I get error for http://mybox:8080/struts/
>>
>> HTTP Status 500 - Internal Server Error
>>
>> 
>>
>> type Exception report
>>
>> messageInternal Server Error
>>
>> descriptionThe server encountered an internal error that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> org.apache.jasper.JasperException: The Struts dispatcher cannot be
>> found.  This is usually caused by using Struts tags without the
>> associated filter. Struts tags are only usable when the request has
>> passed through its servlet filter, which initializes the Struts
>> dispatcher needed for this tag. - [unknown location]
>>
>> root cause
>>
>> The Struts dispatcher cannot be found.  This is usually caused by
>> using Struts tags without the associated filter. Struts tags are only
>> usable when the request has passed through its servlet filter, which
>>
>>
>>
>> and same error for http://mybox:8080/struts/hello.action
>>
>> On Sat, Jun 30, 2018 at 6:43 PM, Yasser Zamani 
>> wrote:
>> >
>> >
>> > On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote:
>> >> web.xml =>
>> >>
>> >> > >>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> >>  "http://java.sun.com/dtd/web-app_2_3.dtd; >
>> >>
>> >> 
>> >> Archetype Created Web Application
>> >> 
>> >> struts2
>> >> org.apache.struts2.dispatcher.FilterDispatcher
>> >> 
>> >
>> > The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts
>> > 2.3.x either DTD and filter. The FilterDispatcher is used in the early
>> > Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always
>> > recommended to upgrade the new filter class –
>> StrutsPrepareAndExecuteFilter.
>> >
>> > Regards.
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton 
> b: Bucky Bits 
> g: davelnewton 
> so: Dave Newton 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found

2018-06-30 Thread Dave Newton
That means you're hitting a JSP page with S2 tags without having run
through an S2 request process, e.g., hitting a JSP page directly.

On Sat, Jun 30, 2018 at 9:14 AM ssmtpmailtesting ssmtpmailtesting <
ssmtpmailtest...@gmail.com> wrote:

> struts.xml =>
>
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
> "http://struts.apache.org/dtds/struts-2.5.dtd;>
> 
> 
>
> 
> 
> /index.jsp
> 
>
>  method="execute">
> /HelloWorld.jsp
> 
> 
> 
>
>
> web.xml
>
> 
>  "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
> "http://struts.apache.org/dtds/struts-2.5.dtd;>
> 
> 
>
> 
> 
> /index.jsp
> 
>
>  method="execute">
> /HelloWorld.jsp
> 
> 
> 
>
> Still I get error for http://mybox:8080/struts/
>
> HTTP Status 500 - Internal Server Error
>
> 
>
> type Exception report
>
> messageInternal Server Error
>
> descriptionThe server encountered an internal error that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: The Struts dispatcher cannot be
> found.  This is usually caused by using Struts tags without the
> associated filter. Struts tags are only usable when the request has
> passed through its servlet filter, which initializes the Struts
> dispatcher needed for this tag. - [unknown location]
>
> root cause
>
> The Struts dispatcher cannot be found.  This is usually caused by
> using Struts tags without the associated filter. Struts tags are only
> usable when the request has passed through its servlet filter, which
>
>
>
> and same error for http://mybox:8080/struts/hello.action
>
> On Sat, Jun 30, 2018 at 6:43 PM, Yasser Zamani 
> wrote:
> >
> >
> > On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote:
> >> web.xml =>
> >>
> >>  >>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >>  "http://java.sun.com/dtd/web-app_2_3.dtd; >
> >>
> >> 
> >> Archetype Created Web Application
> >> 
> >> struts2
> >> org.apache.struts2.dispatcher.FilterDispatcher
> >> 
> >
> > The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts
> > 2.3.x either DTD and filter. The FilterDispatcher is used in the early
> > Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always
> > recommended to upgrade the new filter class –
> StrutsPrepareAndExecuteFilter.
> >
> > Regards.
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
> --
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found

2018-06-30 Thread ssmtpmailtesting ssmtpmailtesting
struts.xml =>


http://struts.apache.org/dtds/struts-2.5.dtd;>





/index.jsp



/HelloWorld.jsp





web.xml


http://struts.apache.org/dtds/struts-2.5.dtd;>





/index.jsp



/HelloWorld.jsp




Still I get error for http://mybox:8080/struts/

HTTP Status 500 - Internal Server Error



type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: The Struts dispatcher cannot be
found.  This is usually caused by using Struts tags without the
associated filter. Struts tags are only usable when the request has
passed through its servlet filter, which initializes the Struts
dispatcher needed for this tag. - [unknown location]

root cause

The Struts dispatcher cannot be found.  This is usually caused by
using Struts tags without the associated filter. Struts tags are only
usable when the request has passed through its servlet filter, which



and same error for http://mybox:8080/struts/hello.action

On Sat, Jun 30, 2018 at 6:43 PM, Yasser Zamani  wrote:
>
>
> On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote:
>> web.xml =>
>>
>> >  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>  "http://java.sun.com/dtd/web-app_2_3.dtd; >
>>
>> 
>> Archetype Created Web Application
>> 
>> struts2
>> org.apache.struts2.dispatcher.FilterDispatcher
>> 
>
> The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts
> 2.3.x either DTD and filter. The FilterDispatcher is used in the early
> Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always
> recommended to upgrade the new filter class – StrutsPrepareAndExecuteFilter.
>
> Regards.
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found

2018-06-30 Thread Yasser Zamani


On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote:
> web.xml =>
> 
>   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  "http://java.sun.com/dtd/web-app_2_3.dtd; >
> 
> 
> Archetype Created Web Application
> 
> struts2
> org.apache.struts2.dispatcher.FilterDispatcher
> 

The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts
2.3.x either DTD and filter. The FilterDispatcher is used in the early
Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always
recommended to upgrade the new filter class – StrutsPrepareAndExecuteFilter.

Regards.



http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found

2018-06-30 Thread ssmtpmailtesting ssmtpmailtesting
tree .

.
├── pom.xml
├── src
│   └── main
│   ├── java
│   │   └── com
│   │   └── actions
│   │   ├── HelloWorldAction.java
│   │   └── MessageStore.java
│   ├── resources
│   │   └── struts.xml
│   └── webapp
│   ├── HelloWorld.jsp
│   ├── index.jsp
│   └── WEB-INF
│   └── web.xml
└── target
├── classes
│   └── struts.xml
└── maven-status
└── maven-compiler-plugin
└── compile
└── default-compile

14 directories, 8 files

I'm following this:
https://struts.apache.org/getting-started/hello-world-using-struts2.html

struts.xml =>


http://struts.apache.org/dtds/struts-2.5.dtd;>





/index.jsp



/HelloWorld.jsp





web.xml =>

http://java.sun.com/dtd/web-app_2_3.dtd; >


Archetype Created Web Application

struts2
org.apache.struts2.dispatcher.FilterDispatcher



struts2
/*


index.jsp




package com.actions;

import com.actions.MessageStore;

import com.opensymphony.xwork2.ActionSupport;

public class HelloWorldAction extends ActionSupport {
private MessageStore messageStore;

public String execute() {
messageStore = new MessageStore() ;

return SUCCESS;
}

public MessageStore getMessageStore() {
return messageStore;
}
}

package com.actions;

public class MessageStore {
private String message;

public MessageStore() {
message = "Hello Struts User";
}

public String getMessage() {
return message;
}
}


http://maven.apache.org/POM/4.0.0;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;>
  4.0.0
  com.actions
  struts
  war
  0.0.1-SNAPSHOT
  struts Maven Webapp
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test



org.apache.struts
struts2-core
2.5.16



javax.servlet
javax.servlet-api
4.0.1
provided



  
  
struts
  



Why am I getting this error? How can I solve it?

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org