Re: http status 404 - not found

2018-11-22 Thread Karen Goh



On Mon, 11/19/18, Salil Misra  wrote:

 Subject: Re: http status 404 - not found
 To: users@tomcat.apache.org, karenwo...@yahoo.com
 Date: Monday, November 19, 2018, 9:14 PM
 
 Just a quick check , have you
 saved your view page as a JSP and not as HTML
 ? If its saved as HTML , this might be the
 possible cause.
 
 Thanks.
 
 
 
 On
 Sun, 18 Nov 2018 at 09:31, Karen Goh 
 wrote:
 
 >
 Hello Tomcat user group,
 >
 > I hope that this question is valid cos I
 googled and many related issue
 > like
 this pointed to server problem.
 >
 > Tomcat version : 8.5.24
 > IDE : Eclipse Oxygen
 >
 OS : Windows 10
 >
 >
 Basically, I have created a maven structured web app and
 after right-click
 > my tutorRegister
 page, and the form submitted, http status 404 appeared.
 >
 > This is what appeared
 in my browser :
 >
 > 
 /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor
 >
 > I have checked my
 past project and there was no problem in getting the
 > form submitted but when I made the project
 into maven type, I am getting
 > the above
 error.
 >
 >        
 
 action="${pageContext.request.contextPath}/addTutor"
 >
 > Here's my pom.xml
 ;
 >
 >
 4.0.0
 >
 >        
 com.hi5Supreme.web
 >        
 webApp-hi5
 >        
 0.0.1-SNAPSHOT
 >        
 war
 >
 >        
 webApp-hi5 Maven Webapp
 >         
 >
 >
 UTF-8
 >                
 1.8
 >                
 1.8
 >         
 >
 >
 >         
 >                
 webApp-hi5
 >                
 
 >             
    
 >      
 src/main/webapp
 >     
 >     
 >                
 
 >                        
 
 >               
                  
 >
 >
 maven-clean-plugin
 >                           
              3.0.0
 >                           
      
 >           
                      
 >         
                        
 >
 >
 maven-resources-plugin
 >                           
              3.0.2
 >                           
      
 >           
                      
 >
 >
 maven-compiler-plugin
 >                           
              3.7.0
 >                           
      
 >           
                      
 >
 >
 maven-surefire-plugin
 >                           
              2.20.1
 >                           
      
 >           
                      
 >
 >
 maven-war-plugin
 >                           
              3.2.0
 >                           
              
 >                           
             
 webApp-hi5
 >                           
              
 >                           
      
 >           
                      
 >
 >
 maven-install-plugin
 >                           
              2.5.2
 >                           
      
 >           
                      
 >
 >
 maven-deploy-plugin
 >                           
              2.8.2
 >                           
      
 >           
              
 > 
                
 >         
 >         
 >                
 
 >             
           
 javax.servlet.jsp
 >                        
 javax.servlet.jsp-api
 >                        
 2.3.1
 > 
                       
 provided
 > 
                
 >                
 
 >             
           
 javax.servlet
 >                        
 jsp-api
 >                        
 2.0
 >   
              
 >                
 
 >             
            jstl
 >                        
 jstl
 >                        
 provided
 > 
                       
 1.2
 >   
              
 >                 
 >                
 
 >             
           
 org.lazyluke
 >                        
 log4jdbc-remix
 >                        
 0.2.7
 > 
                
 >                
 
 >             
            mysql
 >                        
 mysql-connector-java
 >                        
 8.0.12
 > 
                       
 provided
 > 
                
 >                
 
 >             
           
 javax.servlet
 >                        
 javax.servlet-api
 >                        
 3.1.0
 > 
                       
 provided
 > 
                
 >                
 
 >             
            junit
 >                        
 junit
 >                        
 4.11
 > 
                       
 test
 >     
            
 > 
        
 >
 
 >
 >
 Hope someone can let me know how if I have missed out
 anything.
 >
 >
 Tks.
 >
 >
 >
 >
 >
 -
 > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 > For additional commands, e-mail: users-h...@tomcat.apache.org
 >
 >
 

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



Re: http status 404 - not found

2018-11-19 Thread Salil Misra
Just a quick check , have you saved your view page as a JSP and not as HTML
? If its saved as HTML , this might be the possible cause.

Thanks.



On Sun, 18 Nov 2018 at 09:31, Karen Goh 
wrote:

> Hello Tomcat user group,
>
> I hope that this question is valid cos I googled and many related issue
> like this pointed to server problem.
>
> Tomcat version : 8.5.24
> IDE : Eclipse Oxygen
> OS : Windows 10
>
> Basically, I have created a maven structured web app and after right-click
> my tutorRegister page, and the form submitted, http status 404 appeared.
>
> This is what appeared in my browser :
>
>  /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor
>
> I have checked my past project and there was no problem in getting the
> form submitted but when I made the project into maven type, I am getting
> the above error.
>
>  action="${pageContext.request.contextPath}/addTutor"
>
> Here's my pom.xml ;
>
> 4.0.0
>
> com.hi5Supreme.web
> webApp-hi5
> 0.0.1-SNAPSHOT
> war
>
> webApp-hi5 Maven Webapp
> 
>
> UTF-8
> 1.8
> 1.8
> 
>
>
> 
> webApp-hi5
> 
> 
>   src/main/webapp
> 
> 
> 
> 
> 
>
> maven-clean-plugin
> 3.0.0
> 
> 
> 
>
> maven-resources-plugin
> 3.0.2
> 
> 
>
> maven-compiler-plugin
> 3.7.0
> 
> 
>
> maven-surefire-plugin
> 2.20.1
> 
> 
>
> maven-war-plugin
> 3.2.0
> 
> webApp-hi5
> 
> 
> 
>
> maven-install-plugin
> 2.5.2
> 
> 
>
> maven-deploy-plugin
> 2.8.2
> 
> 
> 
> 
> 
> 
> javax.servlet.jsp
> javax.servlet.jsp-api
> 2.3.1
> provided
> 
> 
> javax.servlet
> jsp-api
> 2.0
> 
> 
> jstl
> jstl
> provided
> 1.2
> 
> 
> 
> org.lazyluke
> log4jdbc-remix
> 0.2.7
> 
> 
> mysql
> mysql-connector-java
> 8.0.12
> provided
> 
> 
> javax.servlet
> javax.servlet-api
> 3.1.0
> provided
> 
> 
> junit
> junit
> 4.11
> test
> 
> 
> 
>
> Hope someone can let me know how if I have missed out anything.
>
> Tks.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: http status 404 - not found

2018-11-19 Thread Mark Thomas
On 18/11/2018 04:01, Karen Goh wrote:
> Hello Tomcat user group,
> 
> I hope that this question is valid cos I googled and many related issue like 
> this pointed to server problem.

The question is valid but this is an application problem, not a server
problem.

> Tomcat version : 8.5.24> IDE : Eclipse Oxygen
> OS : Windows 10

Thanks for the OS and Tomcat version information. I'd recommend you
include the version of Java you are using as well. Generally, the Tomcat
version is the most useful, followed by the Java version and then the OS
information.

> Basically, I have created a maven structured web app and after right-click my 
> tutorRegister page, and the form submitted, http status 404 appeared.
> 
> This is what appeared in my browser :
> 
>  /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor

OK. Tomcat will decode those %nn sequences before mapping the request to
a servlet so Tomcat will see:

/webApp-hi5/${pageContext.request.contextPath}/addTutor

> I have checked my past project and there was no problem in getting the form 
> submitted but when I made the project into maven type, I am getting the above 
> error.
> 
>action="${pageContext.request.contextPath}/addTutor"

The EL has not been processed. It has been treated as template text.
Since the string does not start with '/' it has been treated as relative
to the current page (which I assume was '/webApp-hi5/something').

You need to find out why the EL in the form isn't being processed as EL.

Things to look at:
- file name
- version declared for web.xml
- the JSP specification and look for "Deactivating EL"

> Here's my pom.xml ;



>   
>   
>   javax.servlet.jsp
>   javax.servlet.jsp-api
>   2.3.1
>   provided
>   

This appears to be relevant given what you'll find in the JSP specification.

Mark

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



Re: http status 404 - not found

2018-11-17 Thread Arjuna Bandara
Hi,

Can you explain more about the issue and update problem with the console
output?

Was the maven building successful? Try run clean build with ' clean build
-e'. You may have full stack trace.

-
Arjuna


On Sun, 18 Nov 2018 9:31 am Karen Goh,  wrote:

> Hello Tomcat user group,
>
> I hope that this question is valid cos I googled and many related issue
> like this pointed to server problem.
>
> Tomcat version : 8.5.24
> IDE : Eclipse Oxygen
> OS : Windows 10
>
> Basically, I have created a maven structured web app and after right-click
> my tutorRegister page, and the form submitted, http status 404 appeared.
>
> This is what appeared in my browser :
>
>  /webApp-hi5/$%7BpageContext.request.contextPath%7D/addTutor
>
> I have checked my past project and there was no problem in getting the
> form submitted but when I made the project into maven type, I am getting
> the above error.
>
>  action="${pageContext.request.contextPath}/addTutor"
>
> Here's my pom.xml ;
>
> 4.0.0
>
> com.hi5Supreme.web
> webApp-hi5
> 0.0.1-SNAPSHOT
> war
>
> webApp-hi5 Maven Webapp
> 
>
> UTF-8
> 1.8
> 1.8
> 
>
>
> 
> webApp-hi5
> 
> 
>   src/main/webapp
> 
> 
> 
> 
> 
>
> maven-clean-plugin
> 3.0.0
> 
> 
> 
>
> maven-resources-plugin
> 3.0.2
> 
> 
>
> maven-compiler-plugin
> 3.7.0
> 
> 
>
> maven-surefire-plugin
> 2.20.1
> 
> 
>
> maven-war-plugin
> 3.2.0
> 
> webApp-hi5
> 
> 
> 
>
> maven-install-plugin
> 2.5.2
> 
> 
>
> maven-deploy-plugin
> 2.8.2
> 
> 
> 
> 
> 
> 
> javax.servlet.jsp
> javax.servlet.jsp-api
> 2.3.1
> provided
> 
> 
> javax.servlet
> jsp-api
> 2.0
> 
> 
> jstl
> jstl
> provided
> 1.2
> 
> 
> 
> org.lazyluke
> log4jdbc-remix
> 0.2.7
> 
> 
> mysql
> mysql-connector-java
> 8.0.12
> provided
> 
> 
> javax.servlet
> javax.servlet-api
> 3.1.0
> provided
> 
> 
> junit
> junit
> 4.11
> test
> 
> 
> 
>
> Hope someone can let me know how if I have missed out anything.
>
> Tks.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>