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


Re: Http Status 404

2014-02-06 Thread Mark Thomas
On 06/02/2014 08:57, Shivam Mishra wrote:
 Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is
 64- bit configuration .I made a folder in webapps for my servlet but I am
 unable to access it Please help

Read this:
http://www.catb.org/~esr/faqs/smart-questions.html

then post a smarter question.

Mark


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



Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Feb 6, 2014 9:58 AM, Shivam Mishra shmishra...@gmail.com wrote:

 Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is
 64- bit configuration .I made a folder in webapps for my servlet but I am
 unable to access it Please help

Shivam,

Is your tomcat running? What port number? How did you start tomcat?

Do you see the default application?
e.g. http://localhost:8080

Typical web application would have the following folder structure:

myapp/
myapp/WEB-INF/classes/com/shivamcompany/myproject/web/MyServlet.class
myapp/index.jsp
myapp/images/...
...

You would either make a myapp.war or just copy the folder into
TOMCAT_INSTALL_FOLDER_ON_YOUR_SYSTEM/webapps.

Start your tomcat if it is not started.

Your application should be visible from http://localhost:8080/myweb

How did you compile your servlet?

How is your servlet mapped? Are you using web.xml to map or annotations in
the servlet code?

Your servlet should be visible from
http://localhost:8080/myapp/servlet_mapping

and would execute doGet(...) method you defined in your servlet (if you
just requested the address in the browser).

Hope that helps.
Good luck!


Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My tomcat and its example application is running but I got an error with my
own application .My port number is 8080 .I compile my servlet programme in
jdk 7 .and my web.xml file is below
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

web-app
  servlet
servlet-nameMyServlet/servlet-name
servlet-classTestServlet/servlet-class

  /servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/TestServlet/url-pattern
/servlet-mapping
/web-app
My servlet class name is TestServlet


On Thu, Feb 6, 2014 at 3:53 PM, Neven Cvetkovic
neven.cvetko...@gmail.comwrote:

 On Feb 6, 2014 9:58 AM, Shivam Mishra shmishra...@gmail.com wrote:
 
  Hye I am using Tomcat 8.0.1 ,my operating system is Windows 8.1 and it is
  64- bit configuration .I made a folder in webapps for my servlet but I am
  unable to access it Please help

 Shivam,

 Is your tomcat running? What port number? How did you start tomcat?

 Do you see the default application?
 e.g. http://localhost:8080

 Typical web application would have the following folder structure:

 myapp/
 myapp/WEB-INF/classes/com/shivamcompany/myproject/web/MyServlet.class
 myapp/index.jsp
 myapp/images/...
 ...

 You would either make a myapp.war or just copy the folder into
 TOMCAT_INSTALL_FOLDER_ON_YOUR_SYSTEM/webapps.

 Start your tomcat if it is not started.

 Your application should be visible from http://localhost:8080/myweb

 How did you compile your servlet?

 How is your servlet mapped? Are you using web.xml to map or annotations in
 the servlet code?

 Your servlet should be visible from
 http://localhost:8080/myapp/servlet_mapping

 and would execute doGet(...) method you defined in your servlet (if you
 just requested the address in the browser).

 Hope that helps.
 Good luck!



Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Feb 6, 2014 4:21 PM, Shivam Mishra shmishra...@gmail.com wrote:

 My tomcat and its example application is running but I got an error with
my
 own application .My port number is 8080 .I compile my servlet programme in
 jdk 7 .and my web.xml file is below
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

 web-app
   servlet
 servlet-nameMyServlet/servlet-name
 servlet-classTestServlet/servlet-class

   /servlet
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/TestServlet/url-pattern
 /servlet-mapping
 /web-app
 My servlet class name is TestServlet



Ok, great.

Now tell us about directory structure of your application, what files,
where did you put the servlet class file, etc.

Also what do logs say once you deploy your app?


Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 10:32 -0500, Neven Cvetkovic wrote:
 On Feb 6, 2014 4:21 PM, Shivam Mishra shmishra...@gmail.com wrote:
 
  My tomcat and its example application is running but I got an error with
 my
  own application .My port number is 8080 .I compile my servlet programme in
  jdk 7 .and my web.xml file is below
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
 
  web-app
servlet
  servlet-nameMyServlet/servlet-name
  servlet-classTestServlet/servlet-class
 
/servlet
  servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/TestServlet/url-pattern
  /servlet-mapping
  /web-app
  My servlet class name is TestServlet
 
 
 
 Ok, great.
 
 Now tell us about directory structure of your application, what files,
 where did you put the servlet class file, etc.
 
 Also what do logs say once you deploy your app?

And just as importantly: What URL are you using to access your app?




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



Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My directory structure is C:\Program Files\Apache Software
Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
Servlet
Description of my logs is below
06-Feb-2014 14:50:22.684 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.742 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[ajp-nio-8009]
06-Feb-2014 14:50:22.793 INFO [Thread-9]
org.apache.catalina.core.StandardService.stopInternal Stopping service
Catalina
06-Feb-2014 14:50:22.912 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.916 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[ajp-nio-8009]

2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
06-Feb-2014 14:50:34.636 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: C:\Program
Files\Apache Software Foundation\Tomcat
8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files
(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec
MyWinLocker\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program
Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management
Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\IPT;C:\Program
Files\Java\jdk1.8.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\MySQL\MySQL Utilities 1.3.5\;;.
06-Feb-2014 14:50:35.189 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:35.245 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
06-Feb-2014 14:50:35.251 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[ajp-nio-8009]
06-Feb-2014 14:50:35.258 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
06-Feb-2014 14:50:35.258 INFO [main]
org.apache.catalina.startup.Catalina.load Initialization processed in 1511
ms
06-Feb-2014 14:50:35.348 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
Catalina
06-Feb-2014 14:50:35.349 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
Engine: Apache Tomcat/8.0.1
06-Feb-2014 14:50:35.375 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\docs
06-Feb-2014 14:50:36.370 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\examples
06-Feb-2014 14:50:37.825 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\manager
06-Feb-2014 14:50:37.936 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\name
06-Feb-2014 14:50:38.023 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\ROOT
06-Feb-2014 14:50:38.100 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:38.115 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[ajp-nio-8009]
06-Feb-2014 14:50:38.120 INFO [main]
org.apache.catalina.startup.Catalina.start Server startup in 2861 ms
06-Feb-2014 15:07:38.488 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
06-Feb-2014 15:07:38.489 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.catalina.core.StandardContext.reload Reloading Context with name
[/name] has started
06-Feb-2014 15:07:38.928 INFO
[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
org.apache.catalina.core.StandardContext.reload Reloading Context with name
[/name] is completed
06-Feb-2014 15:07:48.932 INFO

Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:
 My directory structure is C:\Program Files\Apache Software
 Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
 Servlet

That last part should be ...\WEB-INF\classes (lower case 'c').  If that
doesn't fix it then, again I ask, what URL are you using to access the
app?


 Description of my logs is below
 06-Feb-2014 14:50:22.684 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:22.742 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
 [ajp-nio-8009]
 06-Feb-2014 14:50:22.793 INFO [Thread-9]
 org.apache.catalina.core.StandardService.stopInternal Stopping service
 Catalina
 06-Feb-2014 14:50:22.912 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:22.916 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
 [ajp-nio-8009]
 
 2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
 06-Feb-2014 14:50:34.636 INFO [main]
 org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
 Tomcat Native library which allows optimal performance in production
 environments was not found on the java.library.path: C:\Program
 Files\Apache Software Foundation\Tomcat
 8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
 Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files
 (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
 Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec
 MyWinLocker\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program
 Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R)
 Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management
 Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management
 Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management
 Engine Components\IPT;C:\Program
 Files\Java\jdk1.8.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\MySQL\MySQL Utilities 1.3.5\;;.
 06-Feb-2014 14:50:35.189 INFO [main]
 org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:35.245 INFO [main]
 org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
 selector for servlet write/read
 06-Feb-2014 14:50:35.251 INFO [main]
 org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
 [ajp-nio-8009]
 06-Feb-2014 14:50:35.258 INFO [main]
 org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
 selector for servlet write/read
 06-Feb-2014 14:50:35.258 INFO [main]
 org.apache.catalina.startup.Catalina.load Initialization processed in 1511
 ms
 06-Feb-2014 14:50:35.348 INFO [main]
 org.apache.catalina.core.StandardService.startInternal Starting service
 Catalina
 06-Feb-2014 14:50:35.349 INFO [main]
 org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
 Engine: Apache Tomcat/8.0.1
 06-Feb-2014 14:50:35.375 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\docs
 06-Feb-2014 14:50:36.370 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\examples
 06-Feb-2014 14:50:37.825 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\manager
 06-Feb-2014 14:50:37.936 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\name
 06-Feb-2014 14:50:38.023 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\ROOT
 06-Feb-2014 14:50:38.100 INFO [main]
 org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:38.115 INFO [main]
 org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
 [ajp-nio-8009]
 06-Feb-2014 14:50:38.120 INFO [main]
 org.apache.catalina.startup.Catalina.start Server startup in 2861 ms
 06-Feb-2014 15:07:38.488 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
 06-Feb-2014 15:07:38.489 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.core.StandardContext.reload 

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
My url is http://localhost:8080/name/TestServlet


On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org wrote:

 On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:
  My directory structure is C:\Program Files\Apache Software
  Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
  Servlet

 That last part should be ...\WEB-INF\classes (lower case 'c').  If that
 doesn't fix it then, again I ask, what URL are you using to access the
 app?


  Description of my logs is below
  06-Feb-2014 14:50:22.684 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:22.742 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
  [ajp-nio-8009]
  06-Feb-2014 14:50:22.793 INFO [Thread-9]
  org.apache.catalina.core.StandardService.stopInternal Stopping service
  Catalina
  06-Feb-2014 14:50:22.912 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:22.916 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
  [ajp-nio-8009]
 
  2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
  06-Feb-2014 14:50:34.636 INFO [main]
  org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
  Tomcat Native library which allows optimal performance in production
  environments was not found on the java.library.path: C:\Program
  Files\Apache Software Foundation\Tomcat
  8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
  Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files
  (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
 
 Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
  Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec
  MyWinLocker\;C:\Program Files (x86)\Intel\OpenCL
 SDK\2.0\bin\x86;C:\Program
  Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R)
  Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
 Management
  Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management
  Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management
  Engine Components\IPT;C:\Program
 
 Files\Java\jdk1.8.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
  Files (x86)\MySQL\MySQL Utilities 1.3.5\;;.
  06-Feb-2014 14:50:35.189 INFO [main]
  org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:35.245 INFO [main]
  org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a
 shared
  selector for servlet write/read
  06-Feb-2014 14:50:35.251 INFO [main]
  org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
  [ajp-nio-8009]
  06-Feb-2014 14:50:35.258 INFO [main]
  org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a
 shared
  selector for servlet write/read
  06-Feb-2014 14:50:35.258 INFO [main]
  org.apache.catalina.startup.Catalina.load Initialization processed in
 1511
  ms
  06-Feb-2014 14:50:35.348 INFO [main]
  org.apache.catalina.core.StandardService.startInternal Starting service
  Catalina
  06-Feb-2014 14:50:35.349 INFO [main]
  org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
  Engine: Apache Tomcat/8.0.1
  06-Feb-2014 14:50:35.375 INFO [localhost-startStop-1]
  org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
  application directory C:\Program Files\Apache Software Foundation\Tomcat
  8.0\webapps\docs
  06-Feb-2014 14:50:36.370 INFO [localhost-startStop-1]
  org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
  application directory C:\Program Files\Apache Software Foundation\Tomcat
  8.0\webapps\examples
  06-Feb-2014 14:50:37.825 INFO [localhost-startStop-1]
  org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
  application directory C:\Program Files\Apache Software Foundation\Tomcat
  8.0\webapps\manager
  06-Feb-2014 14:50:37.936 INFO [localhost-startStop-1]
  org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
  application directory C:\Program Files\Apache Software Foundation\Tomcat
  8.0\webapps\name
  06-Feb-2014 14:50:38.023 INFO [localhost-startStop-1]
  org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
  application directory C:\Program Files\Apache Software Foundation\Tomcat
  8.0\webapps\ROOT
  06-Feb-2014 14:50:38.100 INFO [main]
  org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:38.115 INFO [main]
  org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
  [ajp-nio-8009]
  06-Feb-2014 14:50:38.120 INFO [main]
  org.apache.catalina.startup.Catalina.start Server startup in 2861 ms
  06-Feb-2014 15:07:38.488 INFO
  

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
Now my browser is showing this error as below:

Exception report

*message* *Error instantiating servlet class TestServlet*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

javax.servlet.ServletException: Error instantiating servlet class TestServlet

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)

org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)

org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

*root cause*

java.lang.IllegalAccessException: Class
org.apache.catalina.core.DefaultInstanceManager can not access a
member of class TestServlet with modifiers 
sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance(Unknown Source)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)

org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)

org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)



On Thu, Feb 6, 2014 at 11:04 PM, Shivam Mishra shmishra...@gmail.comwrote:

 My url is http://localhost:8080/name/TestServlet


 On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org wrote:

 On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:
  My directory structure is C:\Program Files\Apache Software
  Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
  Servlet

 That last part should be ...\WEB-INF\classes (lower case 'c').  If that
 doesn't fix it then, again I ask, what URL are you using to access the
 app?


  Description of my logs is below
  06-Feb-2014 14:50:22.684 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:22.742 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
  [ajp-nio-8009]
  06-Feb-2014 14:50:22.793 INFO [Thread-9]
  org.apache.catalina.core.StandardService.stopInternal Stopping service
  Catalina
  06-Feb-2014 14:50:22.912 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
  [http-nio-8080]
  06-Feb-2014 14:50:22.916 INFO [Thread-9]
  org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
  [ajp-nio-8009]
 
  2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
  06-Feb-2014 14:50:34.636 INFO [main]
  org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
  Tomcat Native library which allows optimal performance in production
  environments was not found on the java.library.path: C:\Program
  Files\Apache Software Foundation\Tomcat
 
 8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
  Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files
  (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
 
 Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
  Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec
  MyWinLocker\;C:\Program Files (x86)\Intel\OpenCL
 SDK\2.0\bin\x86;C:\Program
  Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R)
  Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
 Management
  Engine Components\IPT;C:\Program Files 

Re: Http Status 404

2014-02-06 Thread Tim Watts
On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote:
 Now my browser is showing this error as below:
 
 Exception report
 
 *message* *Error instantiating servlet class TestServlet*
 
 *description* *The server encountered an internal error that prevented it
 from fulfilling this request.*
 
 *exception*
 
 javax.servlet.ServletException: Error instantiating servlet class TestServlet
   
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
   
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
   
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
   
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)
   
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
   
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)
 
 *root cause*
 
 java.lang.IllegalAccessException: Class
 org.apache.catalina.core.DefaultInstanceManager can not access a
 member of class TestServlet with modifiers 

You probably didn't declare it as 'public class ...'.  If that's not the
case perhaps you could post the source.

(Just a gentle pre-emptive reminder: This list is run by volunteers to
help folks with their Tomcat problems, not to teach basic Java or
Servlet coding.)


   sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)
   
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
   
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
   
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
   
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)
   
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
   
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)
 
 
 
 On Thu, Feb 6, 2014 at 11:04 PM, Shivam Mishra shmishra...@gmail.comwrote:
 
  My url is http://localhost:8080/name/TestServlet
 
 
  On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org wrote:
 
  On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:
   My directory structure is C:\Program Files\Apache Software
   Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
   Servlet
 
  That last part should be ...\WEB-INF\classes (lower case 'c').  If that
  doesn't fix it then, again I ask, what URL are you using to access the
  app?
 
 
   Description of my logs is below
   06-Feb-2014 14:50:22.684 INFO [Thread-9]
   org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
   [http-nio-8080]
   06-Feb-2014 14:50:22.742 INFO [Thread-9]
   org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
   [ajp-nio-8009]
   06-Feb-2014 14:50:22.793 INFO [Thread-9]
   org.apache.catalina.core.StandardService.stopInternal Stopping service
   Catalina
   06-Feb-2014 14:50:22.912 INFO [Thread-9]
   org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
   [http-nio-8080]
   06-Feb-2014 14:50:22.916 INFO [Thread-9]
   org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
   [ajp-nio-8009]
  
   2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
   06-Feb-2014 14:50:34.636 INFO [main]
   org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
   Tomcat Native library which allows optimal performance in production
   environments was not found on the java.library.path: C:\Program
   Files\Apache Software Foundation\Tomcat
  
  8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
   Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files
   (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
  
  

Re: Http Status 404

2014-02-06 Thread Shivam Mishra
Its running thank you very much ...



On Thu, Feb 6, 2014 at 11:24 PM, Tim Watts t...@cliftonfarm.org wrote:

 On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote:
  Now my browser is showing this error as below:
 
  Exception report
 
  *message* *Error instantiating servlet class TestServlet*
 
  *description* *The server encountered an internal error that prevented it
  from fulfilling this request.*
 
  *exception*
 
  javax.servlet.ServletException: Error instantiating servlet class
 TestServlet
 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
 
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)
 
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
 
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
 
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
 
  *root cause*
 
  java.lang.IllegalAccessException: Class
  org.apache.catalina.core.DefaultInstanceManager can not access a
  member of class TestServlet with modifiers 

 You probably didn't declare it as 'public class ...'.  If that's not the
 case perhaps you could post the source.

 (Just a gentle pre-emptive reminder: This list is run by volunteers to
 help folks with their Tomcat problems, not to teach basic Java or
 Servlet coding.)


sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
 
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
 
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
 
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)
 
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
 
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
 
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
 
 
 
  On Thu, Feb 6, 2014 at 11:04 PM, Shivam Mishra shmishra...@gmail.com
 wrote:
 
   My url is http://localhost:8080/name/TestServlet
  
  
   On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org
 wrote:
  
   On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:
My directory structure is C:\Program Files\Apache Software
Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file
 of
Servlet
  
   That last part should be ...\WEB-INF\classes (lower case 'c').  If
 that
   doesn't fix it then, again I ask, what URL are you using to access the
   app?
  
  
Description of my logs is below
06-Feb-2014 14:50:22.684 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.742 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[ajp-nio-8009]
06-Feb-2014 14:50:22.793 INFO [Thread-9]
org.apache.catalina.core.StandardService.stopInternal Stopping
 service
Catalina
06-Feb-2014 14:50:22.912 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.916 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[ajp-nio-8009]
   
2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
06-Feb-2014 14:50:34.636 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init The APR based
 Apache
Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: C:\Program
Files\Apache Software Foundation\Tomcat
   
  
 8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program
 Files
(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
   
  
 

Re: Http Status 404

2014-02-06 Thread Neven Cvetkovic
On Thu, Feb 6, 2014 at 11:02 AM, Shivam Mishra shmishra...@gmail.comwrote:

 My directory structure is C:\Program Files\Apache Software
 Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
 Servlet


That should probably be lowercase classes, e.g.

C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\name\WEB-INF\classes\MyServlet.class



 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\docs
 06-Feb-2014 14:50:36.370 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\examples
 06-Feb-2014 14:50:37.825 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\manager
 06-Feb-2014 14:50:37.936 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\name
 06-Feb-2014 14:50:38.023 INFO [localhost-startStop-1]
 org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
 application directory C:\Program Files\Apache Software Foundation\Tomcat
 8.0\webapps\ROOT


Here you can see all the apps that were successfully deployed: docs,
example, manager, name (your app), ROOT (default application with /
context)


[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
 06-Feb-2014 15:07:38.489 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.core.StandardContext.reload Reloading Context with name
 [/name] has started
 06-Feb-2014 15:07:38.928 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.core.StandardContext.reload Reloading Context with name
 [/name] is completed
 06-Feb-2014 15:07:48.932 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
 06-Feb-2014 15:07:48.932 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.core.StandardContext.reload Reloading Context with name
 [/name] has started
 06-Feb-2014 15:07:49.401 INFO
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.core.StandardContext.reload Reloading Context with name
 [/name] is completed


How did you test your servlet?

Based on your configuration, it is probably something like:
http://localhost:8080/name/TestServlet

Does that work? What is the error message you get?


Re: Http Status 404

2014-02-06 Thread David kerber

On 2/6/2014 1:05 PM, Shivam Mishra wrote:

Its running thank you very much ...


Can you tell us what the trouble was, so other people with the same 
issue can learn from it?








On Thu, Feb 6, 2014 at 11:24 PM, Tim Watts t...@cliftonfarm.org wrote:


On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote:

Now my browser is showing this error as below:

Exception report

*message* *Error instantiating servlet class TestServlet*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

javax.servlet.ServletException: Error instantiating servlet class

TestServlet



org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)



org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)



org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)



org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)



org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)



org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)



org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)



org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)



org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)

   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)

*root cause*

java.lang.IllegalAccessException: Class
org.apache.catalina.core.DefaultInstanceManager can not access a
member of class TestServlet with modifiers 


You probably didn't declare it as 'public class ...'.  If that's not the
case perhaps you could post the source.

(Just a gentle pre-emptive reminder: This list is run by volunteers to
help folks with their Tomcat problems, not to teach basic Java or
Servlet coding.)



   sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
   java.lang.Class.newInstance(Unknown Source)


org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)



org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)



org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)



org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)



org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)



org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:651)



org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)



org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)



org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)

   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)



On Thu, Feb 6, 2014 at 11:04 PM, Shivam Mishra shmishra...@gmail.com
wrote:


My url is http://localhost:8080/name/TestServlet


On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org

wrote:



On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:

My directory structure is C:\Program Files\Apache Software
Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file

of

Servlet


That last part should be ...\WEB-INF\classes (lower case 'c').  If

that

doesn't fix it then, again I ask, what URL are you using to access the
app?



Description of my logs is below
06-Feb-2014 14:50:22.684 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.742 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
[ajp-nio-8009]
06-Feb-2014 14:50:22.793 INFO [Thread-9]
org.apache.catalina.core.StandardService.stopInternal Stopping

service

Catalina
06-Feb-2014 14:50:22.912 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[http-nio-8080]
06-Feb-2014 14:50:22.916 INFO [Thread-9]
org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
[ajp-nio-8009]

2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
06-Feb-2014 14:50:34.636 INFO [main]
org.apache.catalina.core.AprLifecycleListener.init The APR based

Apache

Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: C:\Program
Files\Apache Software Foundation\Tomcat




8.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program

Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program

Files

(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS





Re: Http Status 404

2014-02-06 Thread Shivam Mishra
I did not make the TestServlet class public .


On Fri, Feb 7, 2014 at 12:05 AM, David kerber dcker...@verizon.net wrote:

 On 2/6/2014 1:05 PM, Shivam Mishra wrote:

 Its running thank you very much ...


 Can you tell us what the trouble was, so other people with the same issue
 can learn from it?







 On Thu, Feb 6, 2014 at 11:24 PM, Tim Watts t...@cliftonfarm.org wrote:

  On Thu, 2014-02-06 at 23:07 +0530, Shivam Mishra wrote:

 Now my browser is showing this error as below:

 Exception report

 *message* *Error instantiating servlet class TestServlet*

 *description* *The server encountered an internal error that prevented
 it
 from fulfilling this request.*

 *exception*

 javax.servlet.ServletException: Error instantiating servlet class

 TestServlet


  org.apache.catalina.authenticator.AuthenticatorBase.invoke(
 AuthenticatorBase.java:503)


  org.apache.catalina.valves.ErrorReportValve.invoke(
 ErrorReportValve.java:74)


  org.apache.catalina.valves.AbstractAccessLogValve.invoke(
 AbstractAccessLogValve.java:610)


  org.apache.catalina.connector.CoyoteAdapter.service(
 CoyoteAdapter.java:509)


  org.apache.coyote.http11.AbstractHttp11Processor.process(
 AbstractHttp11Processor.java:1015)


  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
 process(AbstractProtocol.java:651)


  org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.
 process(Http11NioProtocol.java:222)


  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
 doRun(NioEndpoint.java:1575)


  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
 run(NioEndpoint.java:1533)

java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
 Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
 Source)
java.lang.Thread.run(Unknown Source)

 *root cause*

 java.lang.IllegalAccessException: Class
 org.apache.catalina.core.DefaultInstanceManager can not access a
 member of class TestServlet with modifiers 


 You probably didn't declare it as 'public class ...'.  If that's not the
 case perhaps you could post the source.

 (Just a gentle pre-emptive reminder: This list is run by volunteers to
 help folks with their Tomcat problems, not to teach basic Java or
 Servlet coding.)


 sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance(Unknown Source)

  org.apache.catalina.authenticator.AuthenticatorBase.invoke(
 AuthenticatorBase.java:503)


  org.apache.catalina.valves.ErrorReportValve.invoke(
 ErrorReportValve.java:74)


  org.apache.catalina.valves.AbstractAccessLogValve.invoke(
 AbstractAccessLogValve.java:610)


  org.apache.catalina.connector.CoyoteAdapter.service(
 CoyoteAdapter.java:509)


  org.apache.coyote.http11.AbstractHttp11Processor.process(
 AbstractHttp11Processor.java:1015)


  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
 process(AbstractProtocol.java:651)


  org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.
 process(Http11NioProtocol.java:222)


  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
 doRun(NioEndpoint.java:1575)


  org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
 run(NioEndpoint.java:1533)

java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
 Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
 Source)
java.lang.Thread.run(Unknown Source)



 On Thu, Feb 6, 2014 at 11:04 PM, Shivam Mishra shmishra...@gmail.com
 wrote:

  My url is http://localhost:8080/name/TestServlet


 On Thu, Feb 6, 2014 at 10:55 PM, Tim Watts t...@cliftonfarm.org

 wrote:


  On Thu, 2014-02-06 at 21:32 +0530, Shivam Mishra wrote:

 My directory structure is C:\Program Files\Apache Software
 Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file

 of

 Servlet


 That last part should be ...\WEB-INF\classes (lower case 'c').  If

 that

 doesn't fix it then, again I ask, what URL are you using to access the
 app?


  Description of my logs is below
 06-Feb-2014 14:50:22.684 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:22.742 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
 [ajp-nio-8009]
 06-Feb-2014 14:50:22.793 INFO [Thread-9]
 org.apache.catalina.core.StandardService.stopInternal Stopping

 service

 Catalina
 06-Feb-2014 14:50:22.912 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
 [http-nio-8080]
 06-Feb-2014 14:50:22.916 INFO [Thread-9]
 org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
 [ajp-nio-8009]

 2014-02-06 14:50:33 Commons Daemon procrun stderr initialized
 06-Feb-2014 14:50:34.636 INFO [main]
 org.apache.catalina.core.AprLifecycleListener.init The APR based

 Apache

 Tomcat Native library which allows optimal performance in production
 environments was not found on the java.library.path: C:\Program
 Files\Apache Software Foundation\Tomcat


  

Re: http status 404 error

2012-05-13 Thread Pid
On 11/05/2012 14:13, Jose María Zaragoza wrote:
 2012/5/11 Irene Amatulli iamatu...@cleverdevices.com:
 Hi,

 I got this error when trying to access my application's website.  The Tomcat 
 service is running, so I don't know why I got this error.  The website 
 appeared with no problems when I used it yesterday.  I'm not sure if some 
 updates that were applied to the server may have caused this to happen.  
 Thanks.

 
 
 Pid, it's your turn  ( smart questions, you know  ...)

I'm too tardy to join this party.


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: http status 404 error

2012-05-13 Thread Pid
On 11/05/2012 14:25, Giles Coochey wrote:
 On 11/05/2012 14:13, Jose María Zaragoza wrote:
 2012/5/11 Irene Amatulliiamatu...@cleverdevices.com:
 Hi,

 I got this error when trying to access my application's website.  The
 Tomcat service is running, so I don't know why I got this error.  The
 website appeared with no problems when I used it yesterday.  I'm not
 sure if some updates that were applied to the server may have caused
 this to happen.  Thanks.


 Pid, it's your turn  ( smart questions, you know  ...)
 Actually, this is one for Uri Geller I think.

I do Internet Telepathy[tm] too.


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


Re: http status 404 error

2012-05-11 Thread Jose María Zaragoza
2012/5/11 Irene Amatulli iamatu...@cleverdevices.com:
 Hi,

 I got this error when trying to access my application's website.  The Tomcat 
 service is running, so I don't know why I got this error.  The website 
 appeared with no problems when I used it yesterday.  I'm not sure if some 
 updates that were applied to the server may have caused this to happen.  
 Thanks.



Pid, it's your turn  ( smart questions, you know  ...)

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



Re: http status 404 error

2012-05-11 Thread Giles Coochey

On 11/05/2012 14:13, Jose María Zaragoza wrote:

2012/5/11 Irene Amatulliiamatu...@cleverdevices.com:

Hi,

I got this error when trying to access my application's website.  The Tomcat 
service is running, so I don't know why I got this error.  The website appeared 
with no problems when I used it yesterday.  I'm not sure if some updates that 
were applied to the server may have caused this to happen.  Thanks.



Pid, it's your turn  ( smart questions, you know  ...)

Actually, this is one for Uri Geller I think.

--
Best Regards,
Giles Coochey, CCNA Security, CCNA
NetSecSpec Ltd
giles.cooc...@netsecspec.co.uk
Tel: +44 (0) 7983 877 438
Live Messenger: gi...@coochey.net
http://www.netsecspec.co.uk
http://www.coochey.net



smime.p7s
Description: S/MIME Cryptographic Signature


Re: http status 404 error

2012-05-11 Thread Konstantin Kolinko
2012/5/11 Irene Amatulli iamatu...@cleverdevices.com:
 Hi,

 I got this error when trying to access my application's website.

Are you sure that it is your web site?
Configure an access log at the server and look for evidences.

  The Tomcat service is running, so I don't know why I got this error.  The 
 website appeared with no problems when I used it yesterday.  I'm not sure if 
 some updates that were applied to the server may have caused this to happen.  
 Thanks.

 Irene

 HTTP Status 404 -
 
 type Status report
 message
 description The requested resource () is not available.
 
 Apache Tomcat/6.0.20


Tomcat itself is running. Your application is not.

Either your application did not start, or it is just is not there.

BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html

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



Re: http status 404 error

2012-05-11 Thread Giles Coochey

On 11/05/2012 15:19, Konstantin Kolinko wrote:


BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html


Strangely enough that URL gives me a 404... perhaps this problem is 
spreading!!

--
Best Regards,
Giles Coochey, CCNA Security, CCNA
NetSecSpec Ltd
giles.cooc...@netsecspec.co.uk
Tel: +44 (0) 7983 877 438
Live Messenger: gi...@coochey.net
http://www.netsecspec.co.uk
http://www.coochey.net



smime.p7s
Description: S/MIME Cryptographic Signature


RE: http status 404 error

2012-05-11 Thread Irene Amatulli
Thank you very  much for your help Konstantin!

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Friday, May 11, 2012 10:20 AM
To: Tomcat Users List
Subject: Re: http status 404 error

2012/5/11 Irene Amatulli iamatu...@cleverdevices.com:
 Hi,

 I got this error when trying to access my application's website.

Are you sure that it is your web site?
Configure an access log at the server and look for evidences.

  The Tomcat service is running, so I don't know why I got this error.  The 
 website appeared with no problems when I used it yesterday.  I'm not sure if 
 some updates that were applied to the server may have caused this to happen.  
 Thanks.

 Irene

 HTTP Status 404 -
 
 type Status report
 message
 description The requested resource () is not available.
 
 Apache Tomcat/6.0.20


Tomcat itself is running. Your application is not.

Either your application did not start, or it is just is not there.

BTW, Tomcat 6.0.20 is 3 years old.
Here is a list of known security issues fixed in later releases:
http://tomcat.apache.org/security-6.html

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

2012-05-11 Thread Konstantin Kolinko
2012/5/11 Giles Coochey gi...@coochey.net:
 On 11/05/2012 15:19, Konstantin Kolinko wrote:


 BTW, Tomcat 6.0.20 is 3 years old.
 Here is a list of known security issues fixed in later releases:
 http://tomcat.apache.org/security-6.html


 Strangely enough that URL gives me a 404... perhaps this problem is
 spreading!!


Works for me for both US and EU mirrors.

Try with https protocol, so that intermediate proxies do not interfere
(if you have those in your network) .

BTW, there is also known epidemic of a virus that misconfigures DNS at
client computers.

Best regards,
Konstantin Kolinko

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



Re: HTTP Status 404 - /manager/html

2011-11-08 Thread Kaushal Shriyan
On Tue, Nov 8, 2011 at 10:29 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: Re: HTTP Status 404 - /manager/html

 I did downloaded it from
 http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.19/bin/

 Good.  For curiosity's sake, why didn't you use the most recent release?

 i do have manager webapps

 So noted.

 Are you sure you're accessing that Tomcat?

 Have you changed anything in conf/server.xml (e.g., disabling 
 deployOnStartup)?

 Look in the Tomcat logs to see if there are any errors regarding deployment 
 of or access to the manager webapp.

  - Chuck


Thanks Chuck for the hint,Fixed it after peeking at catalina.out log file.

INFO: Deploying configuration descriptor manager.xml from
/opt/tomcat0/conf/Catalina/localhost
java.lang.IllegalArgumentException: Document base
/opt/tomcat0/server/webapps/manager does not exist or is not a
readable directory
SEVERE: Context [/manager] startup failed due to previous errors
INFO: Deploying web application directory host-manager

So going through the logs,if we look at
/opt/tomcat0/conf/Catalina/localhost/manager.xml docBase was set to a
different path
I have corrected it and it worked fine.

Regards,

Kaushal

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



RE: HTTP Status 404 - /manager/html

2011-11-07 Thread Caldarale, Charles R
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] 
 Subject: HTTP Status 404 - /manager/html

 When i hit http://IP:8080/manager/html, I get HTTP Status 404 -
 /manager/html, Tomcat Version 7.0.19, Any clue ?

Is the manager webapp deployed?  Where did you get this Tomcat?  If you used a 
3rd-party repackaged version of Tomcat rather than a real one from 
tomcat.apache.org, it could easily be missing normally included components.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: HTTP Status 404 - /manager/html

2011-11-07 Thread Kaushal Shriyan
On Tue, Nov 8, 2011 at 8:42 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com]
 Subject: HTTP Status 404 - /manager/html

 When i hit http://IP:8080/manager/html, I get HTTP Status 404 -
 /manager/html, Tomcat Version 7.0.19, Any clue ?

 Is the manager webapp deployed?  Where did you get this Tomcat?  If you used 
 a 3rd-party repackaged version of Tomcat rather than a real one from 
 tomcat.apache.org, it could easily be missing normally included components.

  - Chuck

Hi Chuck,

I did downloaded it from
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.19/bin/ and i do
have manager webapps

root@:/opt/tomcat0/webapps# du -hsc *
19M clients
8.0Kclients.war
3.3Mdocs
2.0Mexamples
92K host-manager
40M invite
40M invite-bk-2
40M invite-nov-1
116Kmanager
2.4Mrac
2.0Mrac.war
208KROOT
148Mtotal
root@:/opt/tomcat0/webapps#

Please suggest further.

Regards

Kaushal



 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.


 -
 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 - /manager/html

2011-11-07 Thread Caldarale, Charles R
 From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] 
 Subject: Re: HTTP Status 404 - /manager/html

 I did downloaded it from
 http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.19/bin/

Good.  For curiosity's sake, why didn't you use the most recent release?

 i do have manager webapps

So noted.

Are you sure you're accessing that Tomcat?

Have you changed anything in conf/server.xml (e.g., disabling deployOnStartup)?

Look in the Tomcat logs to see if there are any errors regarding deployment of 
or access to the manager webapp.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread André Warnier

Hello Amol.

Amol Puglia wrote:

Hello Team,

I am having one application deployed on tomcat. The entire application is 
working fine.

But one of the functionality * in the application * ie. file upload is not 
working.
   ^

 !
As you say yourself above  ---



We are getting following error while uploading file. Also logs are having any 
error messages when file upload gets unsuccesful.

Please guide me to resolve the issue.

Apache version is 5.5.9


There is no such thing.



JAVA Version is 1.4.2_02



That is more than 10 years old and no longer supported by Oracle (at the time it was 
released, it was still called Sun, and they did not even imagine then that they could one 
day be called Oracle).


...


HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


http://lmgtfy.com/?q=http+error+404



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



Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Mikolaj Rydzewski


On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia 
amolcpug...@yahoo.com wrote:



I am having one application deployed on tomcat. The entire
application is working fine.

But one of the functionality in the application ie. file upload is
not working.


You should rather contact your application's vendor for help.


Please guide me to resolve the issue.

Apache version is 5.5.9

JAVA Version is 1.4.2_02


I see you're into oldies-goldies :-)


HTTP Status 404 -
/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


Please read about invoker servlet. It's disabled by default. So I guess 
you were never able to upload files.


--
Mikolaj Rydzewski m...@ceti.pl

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



Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Amol Puglia
Hello Mikolaj,

Thanks a lot for your quick response.

I have uncommented the servlet mapping in web.xml in conf directory of tomcat 
and it has resolved our issue.


Now we are successfully able to upload the file.

Thanks once again.


--- On Thu, 1/20/11, Mikolaj Rydzewski m...@ceti.pl wrote:

From: Mikolaj Rydzewski m...@ceti.pl
Subject: Re: HTTP Status 404 -  
/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
To: Tomcat Users List users@tomcat.apache.org
Date: Thursday, January 20, 2011, 2:07 PM


On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia amolcpug...@yahoo.com 
wrote:

 I am having one application deployed on tomcat. The entire
 application is working fine.
 
 But one of the functionality in the application ie. file upload is
 not working.

You should rather contact your application's vendor for help.

 Please guide me to resolve the issue.
 
 Apache version is 5.5.9
 
 JAVA Version is 1.4.2_02

I see you're into oldies-goldies :-)

 HTTP Status 404 -
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

Please read about invoker servlet. It's disabled by default. So I guess you 
were never able to upload files.

-- Mikolaj Rydzewski m...@ceti.pl

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




  

Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Mark Thomas
On 20/01/2011 09:10, Amol Puglia wrote:
 Hello Mikolaj,
 
 Thanks a lot for your quick response.
 
 I have uncommented the servlet mapping in web.xml in conf directory of tomcat 
 and it has resolved our issue.

If you have uncommented the invoker servlet I trust you have read the
warnings and are confident you haven't just opened up a massive security
hole.

It would have been much safer to do something like:
servlet
  servlet-nameReceiveFileUploadServlet/servlet-name
  servlet-classcom.stc.ePM.webint.ReceiveFileUploadServlet/servlet-class
/servlet
servlet-mapping
servlet-nameReceiveFileUploadServlet/servlet-name

url-pattern/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet/url-pattern
/servlet-mapping

Mark

 
 
 Now we are successfully able to upload the file.
 
 Thanks once again.
 
 
 --- On Thu, 1/20/11, Mikolaj Rydzewski m...@ceti.pl wrote:
 
 From: Mikolaj Rydzewski m...@ceti.pl
 Subject: Re: HTTP Status 404 -  
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
 To: Tomcat Users List users@tomcat.apache.org
 Date: Thursday, January 20, 2011, 2:07 PM
 
 
 On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia amolcpug...@yahoo.com 
 wrote:
 
 I am having one application deployed on tomcat. The entire
 application is working fine.

 But one of the functionality in the application ie. file upload is
 not working.
 
 You should rather contact your application's vendor for help.
 
 Please guide me to resolve the issue.

 Apache version is 5.5.9

 JAVA Version is 1.4.2_02
 
 I see you're into oldies-goldies :-)
 
 HTTP Status 404 -
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
 
 Please read about invoker servlet. It's disabled by default. So I guess you 
 were never able to upload files.
 
 -- Mikolaj Rydzewski m...@ceti.pl
 
 -
 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 - Servlet jsp is not available

2010-12-13 Thread Mark Thomas
On 13/12/2010 13:07, Gaurav Pruthi wrote:
 
 HTTP Status 404 - Servlet jsp is not available ...
 
 While I am putting the jsp  and HTML files in my
 project directory .. still I'm not able to access thoseAlso plz. tell
 how to refer a servlet from a html page(I mean value of action attribute)

The folks on this list are good, but they aren't mind readers.

Tomcat version, JDK version, project file system layout, project web.xml
(if any), project context.xml (if any), ...

http://www.catb.org/~esr/faqs/smart-questions.html

Mark

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



Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hello everyone,
Thanks for the replies I really appreciate your feedback

I have the structure as the following
webapps
|
filename
|- filename.htm
*|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

after having this structure,I use the following command

CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

then I deploy the file in the tomcat manager and I have the following error

HTTP status 404
description the requested resource (/filename/)is not available

I assumed that I don't need the  java classes and lib in the WEB-INF  since
I'm only having single html file with java script, Do you think I need any ?
if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
the filename.htm and the META-INF  there is no WEB-INF it is disappearing

Thanks
Lava

On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

 Basically everything under app1 is optional.  Tomcat will supply a
 default if needed.
 Of course, you will want at least one file under there, to make the execise
 meaningful.

 What is in the sub-directories WEB-INF and META-INF, can never be obtained
 directly by a browser. Tomcat will not allow it.
 So if you enter the following URL in the browser :
 http://yourserver.yourcompany.com/app1/WEB-INF/something
 Tomcat will respond with an error, even if something exists.


 But to start, I suggest that you just
 - stop tomcat
 - create a new sub-directory under ../webapps/, for example myapp.
 - under that subdirectory, place a file called myfile.html
 - verify that the ownership and permissions of these files are such that
 the Tomcat user can read them
 - start Tomcat
 - in the browser, enter 

Re: HTTP status 404

2010-12-09 Thread David Smith
Looks like you should be requesting /filename/filename.htm instead of
filename/ ... that is unless you've set a welcome file in the app's
web.xml file.

If that doesn't work, also take a look at the tomcat logs for the moment
in time you a. started tomcat, b. deployed your app (if different from
the time tomcat was started) and c. when you requested the file.

--David


On 12/9/2010 12:10 PM, Lava Saleem wrote:
 Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
 |- filename.htm
 *|-*WEB-INF
 |- web.xml
 |-META-INF
 |-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any ?
 if so how do I know which files I need ?

  I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

 Basically everything under app1 is optional.  Tomcat will supply a
 default if needed.
 Of course, you will want at least one file under there, to make the execise
 meaningful.

 What is in the sub-directories WEB-INF and META-INF, can never be obtained
 directly by a browser. Tomcat will not allow it.
 So if you enter the following URL in the browser :
 

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

You will have to navigate to:

localhost:8080/filename/filename.htm

In another message I posted a minimal web.xml file. Change index.html to 
filename.htm (if this is what you want your welcome file to be). Then 
navigating 
to:

localhost:8080/filename/

will work.

If you want to create a war file, do the following:

1. Change to the directory filename
2. jar cf ../filename.war .
3. cd ..
4. jar tf filename.war (should give you the complete structure)

One way to use the war file:

1. Copy filename.war to $CATALINA_HOME/webapps

If running, the default configuration of Tomcat will explode the war file and 
you will see a filename directory in $CATALINA_HOME/webapps along with 
filename.war. If you look inside that directory, you will see your web 
application structure.

. . . . . just my two cents.

/mde/

- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: users users@tomcat.apache.org
Sent: Thu, December 9, 2010 9:10:13 AM
Subject: Re: HTTP status 404

Hello everyone,
Thanks for the replies I really appreciate your feedback

I have the structure as the following
webapps
|
filename
|- filename.htm
*|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

after having this structure,I use the following command

CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

then I deploy the file in the tomcat manager and I have the following error

HTTP status 404
description the requested resource (/filename/)is not available

I assumed that I don't need the  java classes and lib in the WEB-INF  since
I'm only having single html file with java script, Do you think I need any ?
if so how do I know which files I need ?

I also extracted the filename.war just to see whats in there and I see only
the filename.htm and the META-INF  there is no WEB-INF it is disappearing

Thanks
Lava

On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file

Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hi Mark,
I have changed my web.xml file to the one you send me and added the
welcome-file-list so I will not need to navigate to
localhost:8080/filename/filename.htm, I changed the index.htm to
filename.htmthen I navigated to  localhost:8080/filename and it didn't
work , I also copied the filename.war file to the webapps and nothing
changed

 however after changing the web.xml file when I navigate to
localhost:8080/filename/filename.htm   the filename pops up, on the manager
side its says running but the session stays zero  so to be honest I'm kinda
confuse is it working now ?if I changed the web.xml shouldn't be working on
localhost:8080/filename/ ?

Thanks
Lava

On Thu, Dec 9, 2010 at 1:15 PM, Mark Eggers its_toas...@yahoo.com wrote:

 In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

 You will have to navigate to:

 localhost:8080/filename/filename.htm

 In another message I posted a minimal web.xml file. Change index.html to
 filename.htm (if this is what you want your welcome file to be). Then
 navigating
 to:

 localhost:8080/filename/

 will work.

 If you want to create a war file, do the following:

 1. Change to the directory filename
 2. jar cf ../filename.war .
 3. cd ..
 4. jar tf filename.war (should give you the complete structure)

 One way to use the war file:

 1. Copy filename.war to $CATALINA_HOME/webapps

 If running, the default configuration of Tomcat will explode the war file
 and
 you will see a filename directory in $CATALINA_HOME/webapps along with
 filename.war. If you look inside that directory, you will see your web
 application structure.

 . . . . . just my two cents.

 /mde/

 - Original Message 
 From: Lava Saleem lnsal...@ualr.edu
 To: users users@tomcat.apache.org
 Sent: Thu, December 9, 2010 9:10:13 AM
 Subject: Re: HTTP status 404

  Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
|- filename.htm
 *|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any
 ?
 if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

   Lava Saleem wrote:
 
  Hi everyone,
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib
 
  I did not modify the web.xml since I don't need the servlets do I need
 to
  modify anything?
 
  HTTP status 404
  description the requested resource (/filename/)is not available
 
 
  Hi.
  Except the 404 error which your are getting, not much above makes any
 sense
  at all.
 
  So it is better to forget all that, and start new.
  You really have to learn to walk before you can run.
 
  First, consider the directory structure of a standard Tomcat installation
 :
 
  (CATALINA_HOME)
  (=CATALINA_BASE)
   |
   |- bin (tomcat programs and scripts)
   |- conf (configuration files)
   |- lib (global library files)
   |- logs (logfiles)
   |- webapps (* web applications *)
 |- ROOT  (the special, top-level, default web application)
 |- app1 (a web application)
 |- app2 (another web application)
 |- ...
 |- lastapp (another web application)
 
  In the above, (CATALINA_HOME) represents the top directory of your
 Tomcat
  installation, the one under which the rest of Tomcat is found.
  For example, on your system it may be C:\tomcat or C:\program
  files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
  /usr/local/tomcat6 or whatever.
 
  The webapps sub-directory is what is important for you now.  That is
  where you will put web applications, composed of static html pages
 (with
  or without javascript in them), JSP pages (special html pages with
 embedded
  Java code), java servlets (compiled java applications), etc..
 
  The ROOT web application is special.  It is the default application.
  When you use a URL like : http://yourserver.yourcompany.com/abc.html
  Tomcat is going to look for abc.html under the webapps/ROOT directory

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
Lava,

 I changed the index.htm to
 filename.htm then I navigated to  localhost:8080/filename and it didn't
 work , I also copied the filename.war file to the webapps and nothing
 changed


Odd, when I do this and type localhost:8080/Static, I get a 302 and redirected 
to localhost:8080/Static/ automatically. Then my welcome page (index.html) gets 
displayed.

Hmm, as an aside maybe a 307 is more appropriate (but pre-HTTP 1.1 clients may 
not understand this, and who knows what IE does)?

What is your complete web.xml?

 the filename pops up, on the manager
 side its says running but the session stays zero

You don't get sessions for free. Sessions are different than connections.

I don't know your background, but it sounds like some reading is in order. A 
book that seems to be helpful is Headfirst Servlets  JSP. The second edition 
covers the servlet 2.5 specifications. You'll need to have a basic 
understanding 
of Java in order to use this book, but it does a good job of explaining a lot 
of 
material. The exercises are reasonable as well.

. . . . just my two cents.

/mde/

- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: users users@tomcat.apache.org
Sent: Thu, December 9, 2010 11:40:14 AM
Subject: Re: HTTP status 404

Hi Mark,
I have changed my web.xml file to the one you send me and added the
welcome-file-list so I will not need to navigate to
localhost:8080/filename/filename.htm, I changed the index.htm to
filename.htmthen I navigated to  localhost:8080/filename and it didn't
work , I also copied the filename.war file to the webapps and nothing
changed

however after changing the web.xml file when I navigate to
localhost:8080/filename/filename.htm   the filename pops up, on the manager
side its says running but the session stays zero  so to be honest I'm kinda
confuse is it working now ?if I changed the web.xml shouldn't be working on
localhost:8080/filename/ ?

Thanks
Lava

On Thu, Dec 9, 2010 at 1:15 PM, Mark Eggers its_toas...@yahoo.com wrote:

 In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

 You will have to navigate to:

 localhost:8080/filename/filename.htm

 In another message I posted a minimal web.xml file. Change index.html to
 filename.htm (if this is what you want your welcome file to be). Then
 navigating
 to:

 localhost:8080/filename/

 will work.

 If you want to create a war file, do the following:

 1. Change to the directory filename
 2. jar cf ../filename.war .
 3. cd ..
 4. jar tf filename.war (should give you the complete structure)

 One way to use the war file:

 1. Copy filename.war to $CATALINA_HOME/webapps

 If running, the default configuration of Tomcat will explode the war file
 and
 you will see a filename directory in $CATALINA_HOME/webapps along with
 filename.war. If you look inside that directory, you will see your web
 application structure.

 . . . . . just my two cents.

 /mde/

 - Original Message 
 From: Lava Saleem lnsal...@ualr.edu
 To: users users@tomcat.apache.org
 Sent: Thu, December 9, 2010 9:10:13 AM
 Subject: Re: HTTP status 404

  Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
|- filename.htm
 *|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any
 ?
 if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

   Lava Saleem wrote:
 
  Hi everyone,
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib
 
  I did not modify the web.xml since I don't need the servlets do I need
 to
  modify anything?
 
  HTTP status 404
  description the requested resource (/filename/)is not available
 
 
  Hi.
  Except the 404 error which your are getting, not much above makes any
 sense
  at all.
 
  So it is better to forget all that, and start new.
  You really have to learn to walk before you can run.
 
  First, consider the directory structure of a standard Tomcat installation
 :
 
  (CATALINA_HOME

Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
I might be wrong but maybe you need to set something in your web.xml to
deliver static files. (basically Tomcat is not designed to run static html
files, you can use a combination of Apache serveur + tomcat serveur to do
that).

I strongely recommand you to use an IDE such as Netbeans, create a new Java
Web Application project, put your html file in the project build it.
Netbeans will generate a correct [YourProjectName].war, that you can deploy
or extract to see exactly how it was build, what you need to set etc...

Victor
http://www.voxnucleus.fr

2010/12/8 Lava Saleem lnsal...@ualr.edu

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava



Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lava,

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

On 12/8/2010 2:39 PM, Lava Saleem wrote:
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following
 
 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

Maybe.

 HTTP status 404
 description the requested resource (/filename/)is not available

What URL did you request? What resource did you expect it to serve?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
GAsAoLvpcJjFYd1vb6ufehd41FgB084q
=SFt0
-END PGP SIGNATURE-

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



Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Victor,

On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

You are wrong. Tomcat is designed to serve static files via the
DefaultServlet, which is (surprise) enabled by default.

 I strongely recommand you to use an IDE such as Netbeans

- -1

If the OP can't figure out how to place files on the disk, adding an IDE
is going to make things so much worse.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
=X4w9
-END PGP SIGNATURE-

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



Re: HTTP status 404

2010-12-08 Thread David Smith
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

Sorry but that's just not correct.  Any file in the webapp, but outside
of the WEB-INF folder can be delivered by the default servlet without
any special settings in web.xml or anywhere else for that matter.

--David

On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

 I strongely recommand you to use an IDE such as Netbeans, create a new Java
 Web Application project, put your html file in the project build it.
 Netbeans will generate a correct [YourProjectName].war, that you can deploy
 or extract to see exactly how it was build, what you need to set etc...

 Victor
 http://www.voxnucleus.fr

 2010/12/8 Lava Saleem lnsal...@ualr.edu

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava



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



Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Christopher,

Yes but using tomcat to server html files looks to me like using a hammer to
kill a fly. Anyway everybody is free to do what he wants !

Concerning the IDE, its advantage is to be automatic, but in a way it adds
an extra layer of difficulty...

Victor
http://www.voxnucleus.fr

2010/12/8 Christopher Schultz ch...@christopherschultz.net

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Victor,

 On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
  I might be wrong but maybe you need to set something in your web.xml to
  deliver static files. (basically Tomcat is not designed to run static
 html
  files, you can use a combination of Apache serveur + tomcat serveur to do
  that).

 You are wrong. Tomcat is designed to serve static files via the
 DefaultServlet, which is (surprise) enabled by default.

  I strongely recommand you to use an IDE such as Netbeans

 - -1

 If the OP can't figure out how to place files on the disk, adding an IDE
 is going to make things so much worse.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
 I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
 =X4w9
 -END PGP SIGNATURE-

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




Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Sorry if I didn't write properly what I wanted to say, but what I was saying
is just that if you want to serve only static html files there are many
other simpler solutions to do that, that's all.
Again even I use it for example to serve .css, .js files on my server so I
agree it is 100 % possible to use a tomcat server that way.

Victor Kabdebon
http://www.voxnucleus.fr

2010/12/8 Victor Kabdebon victor.kabde...@gmail.com

 Christopher,

 Yes but using tomcat to server html files looks to me like using a hammer
 to kill a fly. Anyway everybody is free to do what he wants !

 Concerning the IDE, its advantage is to be automatic, but in a way it adds
 an extra layer of difficulty...

 Victor
 http://www.voxnucleus.fr

 2010/12/8 Christopher Schultz ch...@christopherschultz.net

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Victor,

 On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
  I might be wrong but maybe you need to set something in your web.xml to
  deliver static files. (basically Tomcat is not designed to run static
 html
  files, you can use a combination of Apache serveur + tomcat serveur to
 do
  that).

 You are wrong. Tomcat is designed to serve static files via the
 DefaultServlet, which is (surprise) enabled by default.

  I strongely recommand you to use an IDE such as Netbeans

 - -1

 If the OP can't figure out how to place files on the disk, adding an IDE
 is going to make things so much worse.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
 I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
 =X4w9
 -END PGP SIGNATURE-

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





Re: HTTP status 404

2010-12-08 Thread David Smith
 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib
If I read this right, 'filename.htm' is being stored in
webapp/filename/WEB-INF/filename.htm inside your .war file.  FWIW,
WEB-INF has no special meaning except in the top level of your .war
archive  A .war archive built like this will most likely deploy as a
static html folder and everything in it will be available as static files.

 HTTP status 404
 description the requested resource (/filename/)is not available
If you wanted to get filename.htm with the structure I think you are
describing, you should be requesting
/$WEBAPP/webapp/filename/WEB-INF/filename.htm where $WEBAPP is the
context your war file is deployed under.  Usually $WEBAPP is the name of
the war file.  For instance if the .war file is myapp.war, the request
path to filename.htm under tomcat would most likely be
myapp/webapp/filename/WEB-INF/filename.htm

To fix a *lot* of problems right off the bat, your war archive should
look more like:

filename.htm
WEB-INF
web.xml
classes
lib
META-INF
(what ever lives under here)

Then the request path (again assuming the war file is named myapp.war)
would be /myapp/filename.htm

--David

On 12/8/2010 2:39 PM, Lava Saleem wrote:
 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava


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



Re: HTTP status 404

2010-12-08 Thread Hassan Schroeder
On Wed, Dec 8, 2010 at 12:05 PM, David Smith david.sm...@cornell.edu wrote:

 If you wanted to get filename.htm with the structure I think you are
 describing, you should be requesting
 /$WEBAPP/webapp/filename/WEB-INF/filename.htm

Which (thankfully) won't work, per the spec  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

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



Re: HTTP status 404

2010-12-08 Thread Lava Saleem
Hi Chris
Thanks for the reply

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

No this one is a different question  yes I have read the replies and went
through the documentation

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

yes those are the folder path as you may see, I have  filename.htm with
web.xml with META-INF with classes with lib in a folder called WEB-INF  this
folder  is in a folder called filename, filename is in the webapp folder.

What URL did you request? What resource did you expect it to serve?
yes I have the url and I can't think of any resources needed thats why Iam
asking the question


Thanks

Lava

On Wed, Dec 8, 2010 at 2:47 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Lava,

 Didn't you ask this same question the day before yesterday? Have you
 read all the replies and questions?

 On 12/8/2010 2:39 PM, Lava Saleem wrote:
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib

 What does all that mean? Are those file paths? Are they descriptions of
 how you have concatenated files together? It doesn't make any sense to me.

  I did not modify the web.xml since I don't need the servlets do I need to
  modify anything?

 Maybe.

  HTTP status 404
  description the requested resource (/filename/)is not available

 What URL did you request? What resource did you expect it to serve?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
 GAsAoLvpcJjFYd1vb6ufehd41FgB084q
 =SFt0
 -END PGP SIGNATURE-

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




--


Re: HTTP status 404

2010-12-08 Thread Mark Eggers
Lava,


Please read the following:

http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html

Pay particular attention to:

http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html#Standard_Directory_Layout


(please note the above link is line-wrapped)

Here's an example. Each line level is a subdirectory. Comments are in 
parentheses.

Static (top folder - application name)
├── (jsp, html, js, css, etc. - can have subdirectories)
├── META-INF (context.xml, not required - see Tomcat documentation)
└── WEB-INF
├── classes (where the java classes you wrote go)
├── lib (where jar files - yours or third party libraries go)
└── web.xml (deployment descriptor - read the standard)

A minimal Tomcat 6 deployment descriptor for an application containing only 
static resources could be:

?xml version=1.0 encoding=UTF-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun. 
com/xml/ns/javaee/web-app_2_5.xsd
display-nameStatic Application/display-name
descriptionHTML, CSS, and JS application/description
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
/web-app

(note again that the third / fourth line of the web-app element is line-wrapped)

The index.html file would go under Static (Static-index.html).

The web.xml file would go under Static-WEB-INF (Static-WEB-INF-web.xml).

You would display this application by copying the entire directory structure to 
$CATALINA_HOME/webapps, starting Tomcat, and then browse to 
http://localhost:8080/Static/ (provided you have not changed the default 
server.xml.

If you want to make a war file, then go to the parent directory and issue the 
following command from the command line:

jar tf Static.war Static

Please note that case is important. This will create Static.war which can then 
be deployed using Tomcat's manager application (or copying Static.war to 
$CATALINA_HOME/webapps).

. . . . just my two cents.

/mde/


- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: Tomcat Users List users@tomcat.apache.org
Sent: Wed, December 8, 2010 12:12:18 PM
Subject: Re: HTTP status 404

Hi Chris
Thanks for the reply

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

No this one is a different question  yes I have read the replies and went
through the documentation

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

yes those are the folder path as you may see, I have  filename.htm with
web.xml with META-INF with classes with lib in a folder called WEB-INF  this
folder  is in a folder called filename, filename is in the webapp folder.

What URL did you request? What resource did you expect it to serve?
yes I have the url and I can't think of any resources needed thats why Iam
asking the question


Thanks

Lava

On Wed, Dec 8, 2010 at 2:47 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Lava,

 Didn't you ask this same question the day before yesterday? Have you
 read all the replies and questions?

 On 12/8/2010 2:39 PM, Lava Saleem wrote:
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib

 What does all that mean? Are those file paths? Are they descriptions of
 how you have concatenated files together? It doesn't make any sense to me.

  I did not modify the web.xml since I don't need the servlets do I need to
  modify anything?

 Maybe.

  HTTP status 404
  description the requested resource (/filename/)is not available

 What URL did you request? What resource did you expect it to serve?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
 GAsAoLvpcJjFYd1vb6ufehd41FgB084q
 =SFt0
 -END PGP SIGNATURE-

 -
 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

2010-12-08 Thread André Warnier

Lava Saleem wrote:

Hi everyone,
I have  a single page html file with java script embadded in it, I have
created a war file for it and deployed it successfully but when I click on
the page I get the below error, the structure of my war file is the
following

webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
+  classes + lib

I did not modify the web.xml since I don't need the servlets do I need to
modify anything?

HTTP status 404
description the requested resource (/filename/)is not available



Hi.
Except the 404 error which your are getting, not much above makes any sense at 
all.

So it is better to forget all that, and start new.
You really have to learn to walk before you can run.

First, consider the directory structure of a standard Tomcat installation :

(CATALINA_HOME)
(=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

In the above, (CATALINA_HOME) represents the top directory of your Tomcat installation, 
the one under which the rest of Tomcat is found.
For example, on your system it may be C:\tomcat or C:\program files\Apache Software 
Foundation\tomcat6.0 or /usr/share/tomcat6 or /usr/local/tomcat6 or whatever.


The webapps sub-directory is what is important for you now.  That is where you will put 
web applications, composed of static html pages (with or without javascript in them), 
JSP pages (special html pages with embedded Java code), java servlets (compiled java 
applications), etc..


The ROOT web application is special.  It is the default application.
When you use a URL like : http://yourserver.yourcompany.com/abc.html
Tomcat is going to look for abc.html under the webapps/ROOT directory.

The other subdirectories under webapps are each one separate web application.
To access for example the application named app1, you will have to use a URL starting 
with http://yourserver.yourcompany.com/app1/;
For example, if you place a html page named xyz.html in the subdirectory 
(CATALINA_HOME)/webapps/app1, then the URL to call it up will be

http://yourserver.yourcompany.com/app1/xyz.html

Under such a web application directory like ../webapps/app1, there is also a 
structure.
It looks like this :

(CATALINA_HOME)
(=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

Basically everything under app1 is optional.  Tomcat will supply a default if 
needed.
Of course, you will want at least one file under there, to make the execise 
meaningful.

What is in the sub-directories WEB-INF and META-INF, can never be obtained directly by a 
browser. Tomcat will not allow it.

So if you enter the following URL in the browser :
http://yourserver.yourcompany.com/app1/WEB-INF/something
Tomcat will respond with an error, even if something exists.


But to start, I suggest that you just
- stop tomcat
- create a new sub-directory under ../webapps/, for example myapp.
- under that subdirectory, place a file called myfile.html
- verify that the ownership and permissions of these files are such that the Tomcat user 
can read them

- start Tomcat
- in the browser, enter the URL : 
http://yourserver.yourcompany.com/myapp/myfile.html
and enjoy.

Now play around with the above :
- create another page mypage2.html, place it alongside myfile.html, start Tomcat and 
call up the new page in the browser.
- then stop Tomcat again, and create another subdirectory under webapps, put something 
there, start Tomcat and call it up with the browser.
- then stop Tomcat again, create a sub-directory WEB-INF under one of your webapps, put 
something in it, start Tomcat and try to call up that file.


When you understand exactly how that works, then go read this page (again) :
http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html

And then you should come back for more questions about how to make .war files and deploy 
them properly.
(tip : a .war file is just a zip file with the same content as the app1 subdirectory 
above.  It has to be named app1.war, and you have to copy it under /webapps/ for Tomcat 
to understand what you want).




Re: HTTP status 404 - only first time when accessing from browser

2010-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

On 2/9/2010 3:17 PM, lazyisgood wrote:
 1. In a new browser window, go to 
 http://subash.redirectme.net:8080/stock/faces/welcome.jspx
 The url in the browser can be seen as:
 http://subash.redirectme.net:8080/stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=someNUM?_afrLoop=1someNUm_afrWindowMode=0_afrWindowId=null

That's odd. Let's see what happens:

1. Request is made for
http://subash.redirectme.net:8080/stock/faces/welcome.jspx;
2. Server responds with 200 OK w/Set-Cookie JSESSIONID header
3. Client requests
http://subash.redirectme.net:8080/stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=8EEDF59F86BEC61AF9E0FCC299482BCE?_afrLoop=1452271788441692_afrWindowMode=0_afrWindowId=null;
4. Server responds with 404 Not Found

 2. Now, delete the URL and again go to
 http://subash.redirectme.net:8080/stock/faces/welcome.jspx
 in the same browser. The page loads fine.
 
 3. Close the browser window and repeat step 1, the problem appears again.

Clearing the cookie allows you to reproduce this problem without
restarting the web browser. So, something happens with a live cookie
that allows this to work. I suspect it's an image.

Let's see what wget gives us.

Okay, a request to
http://subash.redirectme.net:8080/stock/faces/welcome.jspx; results in
a page full of javascript. The last few lines of javascript in the page
look like this:

=
var sess =
http://subash.redirectme.net:8080/stock/faces/;jsessionid=3B2C036C566B9EEAB4A26965D80C6F62;;

if (sess.length  0)
  href += sess;

/* if pprNav is on, then the hash portion should have already been
processed */
if ((false) || (hash == null))
  document.location.replace(href + query);
else
  document.location.replace(href + query + # + hash);
/scriptnoscriptThis page uses JavaScript and requires a JavaScript
enabled
=

It looks like your Javascript code has failed to correctly parse the URL
for session information. I would remove the 'document.location.replace'
call temporarily and see what's wrong with your javascript code.

Note that you can so a lot of this type of stuff on the server, and it
might be a bit more clean.

Good luck,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktxzaEACgkQ9CaO5/Lv0PBG2ACghxFrvbvSIQ5WjSMYxJbR/c4U
yH4AnjR0AzE4tIyb2dZ8sEc9Q4u0h3HK
=Vnwz
-END PGP SIGNATURE-

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



Re: HTTP Status 404 - /openipmp/jsp/login.jsp

2009-02-05 Thread Mark Thomas
geet...@tataelxsi.co.in wrote:
 Dear all,
  Good afternoon.
 I need a help.

Please don't hijack threads. Not only is it a general nuisance and makes
searching of the archives confusing, many of the folks on this list will ignore
any post that hijacks a thread.

Mark

 I am trying to install an open source DRM server in my system.from OPENIPMP
 Here they are using Tomcat server.
 To access the DRM server we are using JBOSS Application server.After
 installation I am trying to acccess the server by
 
 http://localhost:8080/openipmp/jsp/login.jsp.
 
 But its giving error message
 
 
 HTTP Status 404 - /openipmp/jsp/login.jsp
 
 type  Status report
 
 message  /openipmp/jsp/login.jsp
 
 description  The requested resource (/openipmp/jsp/login.jsp) is not
 available.
 Apache Tomcat/5.5.9
 
 
 Whether any path settings to be changed or any files to be modified. please
 share your ideas?
 
 If anyone is having any idea to resolve this problem, please share it.
 
 Thanking you in advance..
  
 GEETHAKRISHNAN P
 DD Senior Engineer
 Tata Elxsi Ltd
 Techno Park,Neyyar Building
 Kazhakootam
 Thiruvananthapuram
  
  
  Nothing happens in my life that God and I can't resolve... 
  
 
 
 The information contained in this electronic message and any attachments to 
 this message are intended for the exclusive use of the addressee(s) and may 
 contain proprietary, confidential or privileged information. If you are not 
 the intended recipient, you should not disseminate, distribute or copy this 
 e-mail. Please notify the sender immediately and destroy all copies of this 
 message and any attachments contained in it.
 
 -
 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 - Context config

2009-01-28 Thread Stephen Vaughan
Nevermind, I've resolved it.

thank you for replying.

On Wed, Jan 28, 2009 at 2:04 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Stephen Vaughan [mailto:stephenvaug...@gmail.com]
  Subject: HTTP status 404 - Context config
 
  I'm having trouble setting up a context with jdbc.postgresql

 What version of Tomcat?

 What vendor and version of JVM?

 What platform?

 Where is your Context element located?

 What's in the Tomcat logs?

 (Don't muck with log4j unless your webapp requires it - start over with a
 clean install of Tomcat.)

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

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




-- 
Best Regards,
Stephen


RE: HTTP status 404 - Context config

2009-01-27 Thread Caldarale, Charles R
 From: Stephen Vaughan [mailto:stephenvaug...@gmail.com]
 Subject: HTTP status 404 - Context config

 I'm having trouble setting up a context with jdbc.postgresql

What version of Tomcat?

What vendor and version of JVM?

What platform?

Where is your Context element located?

What's in the Tomcat logs?

(Don't muck with log4j unless your webapp requires it - start over with a clean 
install of Tomcat.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: HTTP Status 404

2009-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Satya,

satya mahapatra wrote:
 The web.xml file is inside \WebRoot\WEB-INF\web.xml. According to this I
 have modified the context.xml inside Tomcat 6.0\conf as below.
 
 WatchedResource/WebRoot/WEB-INF/web.xml/WatchedResource

AFAICT, WatchedResource expects resources to be relative to the
application's root, so you really want this:

WatchedResourceWEB-INF/web.xml/WatchedResource

...if your application's name is WebRoot.

Note that web.xml is watched by default, and you don't need this extra
setting. Also note that you shouldn't be changing conf/context.xml. If
you want to customize your own application's deployment, then use a
context.xml file in the META-INF directory of your web application
instead of modifying the server-wide config file.

 But still its not able to pick the web.xml and thats why showing 404 error.
 Any idea where else I need to change?
 
 But when I removed the WebRoot folder and only kept the WEB-INF folder
 directly inside the context path then its working fine.

I suspect that you have your application deployed within the ROOT app
and thus not properly deployed. Does your directory structure look like
this:

ROOT
  - WebRoot
 - WEB-INF
- web.xml

??

If that's the case, your application is improperly deployed. Either
deploy WebRoot at the same level as the ROOT directory (to deploy your
application as WebRoot), or move everything from WebRoot up to ROOT
(to deploy your application as the root application).

 Is there any way to customize the directory structure of the web application
 and please let me know where i am going wrong.

There is only one acceptable directory structure for a web application
and that is to have WEB-INF at the top-level of the application's
deployment directory (or WAR file).

If you are still having problems, please give more detail about where
your files are,

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklr3ogACgkQ9CaO5/Lv0PAIQwCff/AnAlsTKJq/mBwpg6pyalaR
AUoAn235r5fDHnrt02WB/RkV9BhN2/bc
=xBKM
-END PGP SIGNATURE-

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



RE: HTTP Status 404 with Apache Tomcat/5.5

2008-12-14 Thread Martin Gainty

Hsuan-

could you post your
.\WEB-INF\web.xml
.\META-INF\Applicationcontext.xml

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 From: hs...@nchc.org.tw
 To: users@tomcat.apache.org
 Subject: HTTP Status 404  with Apache Tomcat/5.5
 Date: Mon, 15 Dec 2008 09:18:11 +0800
 
  
 
 Hi all:
 
 When I browse http://localhost:8180/geant2-java-rrd-ma the following is
 returned:
 
  
 
  
 
  
 
 HTTP Status 404 -
 
 
 
 type Status report
 
 message
 
 description The requested resource () is not available.
 
 
 
 Apache Tomcat/5.5
 
  
 
  
 
  
 
  
 
 What's the problem ! How can I to solve the problem?
 
 thanks!
 
  
 

_
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

RE: HTTP Status 404 with Apache Tomcat/5.5

2008-12-14 Thread Caldarale, Charles R
 From: hsuan [mailto:hs...@nchc.org.tw]
 Subject: HTTP Status 404 with Apache Tomcat/5.5

 What's the problem ! How can I to solve the problem?

http://marc.info/?l=tomcat-userm=122823060425367w=2
http://www.catb.org/~esr/faqs/smart-questions.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 16:45:35 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a windows
 XP machine. The ultimate goal is to install ArcIMS 9.2 on this machien
 but I am not there yet. For right now, I'm having connectivity issues
 between Tomcat and Apache.
 
 I am following the instructions from
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
 eShowd=31524
 
 The Apache seems to be succesfully installed but when I try to run the
 HelloWorldExample, I get the following error
 
 ===Error Screen Starts Here
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
 
 --
 --
 
 type Status report
 
 message /examples/servlets/servlet/HelloWorldExample
 
 description The requested resource
 (/examples/servlets/servlet/HelloWorldExample) is not available.
 
 
 --
 --
 
 Apache Tomcat/5.5.17
 Error Screen Ends here
 
 Please advise on how correct this. Any pointer to relevant
 documentation will be greatly appreciated as well.
 

The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example is at

/servlets-examples/servlet/HelloWorldExample


The url provided is from Tomcat 6.x version.

Any urls you see above should be verified first by going through Tomcat first:

http://localhost:8080

then navigate through to where you need to go.


These are the docs. for Tomcat 5.5

http://tomcat.apache.org/tomcat-5.5-doc/index.html



-Steve O.





 Thanks,
 Ljuba
 
 -- 
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/
 
 We learn by going where we want to go.
  Julia Cameron
 ==
 ==
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Ljuba Veselinova
Thanks for that!

Apparently, I am having a redirect problem from Apache. Any ideas on
how to correct this?

I did a crude search on the documentation but nothing turned up.

Thanks again,
Ljuba

On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED] wrote:
 Date sent:  Tue, 08 Jul 2008 16:45:35 +0200
 From:   Ljuba Veselinova [EMAIL PROTECTED]
 Subject:HTTP Status 404 - 
 /examples/servlets/servlet/HelloWorldExample
 To: Tomcat Users List users@tomcat.apache.org
 Send reply to:  Tomcat Users List users@tomcat.apache.org

 I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a windows
 XP machine. The ultimate goal is to install ArcIMS 9.2 on this machien
 but I am not there yet. For right now, I'm having connectivity issues
 between Tomcat and Apache.

 I am following the instructions from
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
 eShowd=31524

 The Apache seems to be succesfully installed but when I try to run the
 HelloWorldExample, I get the following error

 ===Error Screen Starts Here
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

 --
 --

 type Status report

 message /examples/servlets/servlet/HelloWorldExample

 description The requested resource
 (/examples/servlets/servlet/HelloWorldExample) is not available.


 --
 --

 Apache Tomcat/5.5.17
 Error Screen Ends here

 Please advise on how correct this. Any pointer to relevant
 documentation will be greatly appreciated as well.


 The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example is at

 /servlets-examples/servlet/HelloWorldExample


 The url provided is from Tomcat 6.x version.

 Any urls you see above should be verified first by going through Tomcat first:

 http://localhost:8080

 then navigate through to where you need to go.


 These are the docs. for Tomcat 5.5

 http://tomcat.apache.org/tomcat-5.5-doc/index.html



 -Steve O.





 Thanks,
 Ljuba

 --
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/

 We learn by going where we want to go.
  Julia Cameron
 ==
 ==

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
===
Ljuba Veselinova
Dept of Linguistics, Stockholm University, S-10691 Stockholm, Sweden
Phone: +46-8-16-2332
URL : http://www.ling.su.se/staff/ljuba/

We learn by going where we want to go.
 Julia Cameron


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 17:41:18 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:Re: HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Thanks for that!
 
 Apparently, I am having a redirect problem from Apache. Any ideas on
 how to correct this?
 

Did you modify the JkMount directive and restart Apache httpd?


 I did a crude search on the documentation but nothing turned up.

The docs. for the connector are at:

http://tomcat.apache.org/connectors-doc/


This will help also:


http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


Remember to modify the JkMount directive as needed.


-Steve O.




 
 Thanks again,
 Ljuba
 
 On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED] wrote:
  Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From: 
  Ljuba Veselinova [EMAIL PROTECTED]  Subject:   
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample 
 To: Tomcat Users List users@tomcat.apache.org 
 Send reply to:  Tomcat Users List users@tomcat.apache.org 
  I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
 windows  XP machine. The ultimate goal is to install ArcIMS 9.2 on
 this machien  but I am not there yet. For right now, I'm having
 connectivity issues  between Tomcat and Apache.   I am following
 the instructions from 
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
  eShowd=31524   The Apache seems to be succesfully installed
 but when I try to run the  HelloWorldExample, I get the following
 error   ===Error Screen Starts Here  HTTP Status 404 -
 /examples/servlets/servlet/HelloWorldExample  
 --
  --   type Status report   message
 /examples/servlets/servlet/HelloWorldExample   description The
 requested resource  (/examples/servlets/servlet/HelloWorldExample)
 is not available.   
 --
  --   Apache Tomcat/5.5.17  Error Screen
 Ends here   Please advise on how correct this. Any pointer to
 relevant  documentation will be greatly appreciated as well.   
 The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example
 is at   /servlets-examples/servlet/HelloWorldExampleThe url
 provided is from Tomcat 6.x version.   Any urls you see above should
 be verified first by going through Tomcat first:  
 http://localhost:8080   then navigate through to where you need to
 go.These are the docs. for Tomcat 5.5  
 http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve O. 
  Thanks,  Ljuba   -- 
 ==
  = Ljuba Veselinova Dept of Linguistics, Stockholm University,
  S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL : 
 http://www.ling.su.se/staff/ljuba/   We learn by going where we
 want to go.   Julia Cameron 
 ==
  ==  
 -
  To start a new topic, e-mail: users@tomcat.apache.org To
 unsubscribe,  e-mail: [EMAIL PROTECTED] For
 additional commands,  e-mail: [EMAIL PROTECTED]
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org  To
 unsubscribe, e-mail: [EMAIL PROTECTED]  For
 additional commands, e-mail: [EMAIL PROTECTED]  
 
 
 
 -- 
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/
 
 We learn by going where we want to go.
  Julia Cameron
 ==
 ==
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Ljuba Veselinova
On Tue, Jul 8, 2008 at 5:47 PM, Steve Ochani [EMAIL PROTECTED] wrote:
 Date sent:  Tue, 08 Jul 2008 17:41:18 +0200
 From:   Ljuba Veselinova [EMAIL PROTECTED]
 Subject:Re: HTTP Status 404 - 
 /examples/servlets/servlet/HelloWorldExample
 To: Tomcat Users List users@tomcat.apache.org
 Send reply to:  Tomcat Users List users@tomcat.apache.org

 Thanks for that!

 Apparently, I am having a redirect problem from Apache. Any ideas on
 how to correct this?


 Did you modify the JkMount directive and restart Apache httpd?


Restarting did the trick!

I just can't thank you enough. I will now write to ESRI to ask them to
correct their instructions.

Ljuba
 I did a crude search on the documentation but nothing turned up.

 The docs. for the connector are at:

 http://tomcat.apache.org/connectors-doc/


 This will help also:


 http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


 Remember to modify the JkMount directive as needed.


 -Steve O.





 Thanks again,
 Ljuba

 On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED] wrote:
  Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From:
  Ljuba Veselinova [EMAIL PROTECTED]  Subject:
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample 
 To: Tomcat Users List users@tomcat.apache.org 
 Send reply to:  Tomcat Users List users@tomcat.apache.org 
  I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
 windows  XP machine. The ultimate goal is to install ArcIMS 9.2 on
 this machien  but I am not there yet. For right now, I'm having
 connectivity issues  between Tomcat and Apache.   I am following
 the instructions from 
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
  eShowd=31524   The Apache seems to be succesfully installed
 but when I try to run the  HelloWorldExample, I get the following
 error   ===Error Screen Starts Here  HTTP Status 404 -
 /examples/servlets/servlet/HelloWorldExample  
 --
  --   type Status report   message
 /examples/servlets/servlet/HelloWorldExample   description The
 requested resource  (/examples/servlets/servlet/HelloWorldExample)
 is not available.   
 --
  --   Apache Tomcat/5.5.17  Error Screen
 Ends here   Please advise on how correct this. Any pointer to
 relevant  documentation will be greatly appreciated as well.   
 The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example
 is at   /servlets-examples/servlet/HelloWorldExampleThe url
 provided is from Tomcat 6.x version.   Any urls you see above should
 be verified first by going through Tomcat first:  
 http://localhost:8080   then navigate through to where you need to
 go.These are the docs. for Tomcat 5.5  
 http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve O. 
  Thanks,  Ljuba   -- 
 ==
  = Ljuba Veselinova Dept of Linguistics, Stockholm University,
  S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL : 
 http://www.ling.su.se/staff/ljuba/   We learn by going where we
 want to go.   Julia Cameron 
 ==
  ==  
 -
  To start a new topic, e-mail: users@tomcat.apache.org To
 unsubscribe,  e-mail: [EMAIL PROTECTED] For
 additional commands,  e-mail: [EMAIL PROTECTED]
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org  To
 unsubscribe, e-mail: [EMAIL PROTECTED]  For
 additional commands, e-mail: [EMAIL PROTECTED]  



 --
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/

 We learn by going where we want to go.
  Julia Cameron
 ==
 ==

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
===
Ljuba Veselinova
Dept of Linguistics, Stockholm University, S-10691 Stockholm, Sweden
Phone: +46-8-16-2332
URL : http://www.ling.su.se/staff/ljuba/

We learn by going where we want to go.
 Julia Cameron

Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 18:22:21 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:Re: HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 On Tue, Jul 8, 2008 at 5:47 PM, Steve Ochani [EMAIL PROTECTED] wrote:
  Date sent:  Tue, 08 Jul 2008 17:41:18 +0200  From: 
  Ljuba Veselinova [EMAIL PROTECTED]  Subject:   
 Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
  To: Tomcat Users List users@tomcat.apache.org
  Send reply to:  Tomcat Users List users@tomcat.apache.org
   Thanks for that!   Apparently, I am having a redirect problem
 from Apache. Any ideas on  how to correct this?Did you
 modify the JkMount directive and restart Apache httpd? 
 
 Restarting did the trick!
 
 I just can't thank you enough. I will now write to ESRI to ask them to
 correct their instructions.
 

Good luck dealing with ESRI, I have to deal with ArcGIS at my part time job and 
ESRI 
support isn't exactly helpful.


-Steve O.




 Ljuba
  I did a crude search on the documentation but nothing turned up.
 
  The docs. for the connector are at:
 
  http://tomcat.apache.org/connectors-doc/
 
 
  This will help also:
 
 
  http://tomcat.apache.org/connectors-doc/generic_howto/quick.html
 
 
  Remember to modify the JkMount directive as needed.
 
 
  -Steve O.
 
 
 
 
 
  Thanks again,
  Ljuba
 
  On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED]
  wrote:
   Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From:
   Ljuba Veselinova [EMAIL PROTECTED]  Subject:
  HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
  
  To: Tomcat Users List users@tomcat.apache.org
   Send reply to:  Tomcat Users List
  users@tomcat.apache.org 
   I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
  windows  XP machine. The ultimate goal is to install ArcIMS 9.2
  on this machien  but I am not there yet. For right now, I'm
  having connectivity issues  between Tomcat and Apache.   I am
  following the instructions from 
  http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.art
  icl
   eShowd=31524   The Apache seems to be succesfully installed
  but when I try to run the  HelloWorldExample, I get the following
  error   ===Error Screen Starts Here  HTTP Status 404
  - /examples/servlets/servlet/HelloWorldExample  
  ---
  ---
   --   type Status report   message
  /examples/servlets/servlet/HelloWorldExample   description The
  requested resource 
  (/examples/servlets/servlet/HelloWorldExample) is not available. 
   
  ---
  ---
   --   Apache Tomcat/5.5.17  Error
   Screen
  Ends here   Please advise on how correct this. Any pointer to
  relevant  documentation will be greatly appreciated as well.  
   The url is incorrect for Tomcat 5.5.x versions. The HelloWorld
  example is at   /servlets-examples/servlet/HelloWorldExample  
   The url provided is from Tomcat 6.x version.   Any urls you see
  above should be verified first by going through Tomcat first:  
  http://localhost:8080   then navigate through to where you need
  to go.These are the docs. for Tomcat 5.5  
  http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve
  O. 
   Thanks,  Ljuba   -- 
  ===
  ===
   = Ljuba Veselinova Dept of Linguistics, Stockholm
   University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
   
  http://www.ling.su.se/staff/ljuba/   We learn by going where
  we want to go.   Julia Cameron 
  ===
  ===
   ==  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe,  e-mail: [EMAIL PROTECTED] For
  additional commands,  e-mail: [EMAIL PROTECTED]   
  
  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org  To
  unsubscribe, e-mail: [EMAIL PROTECTED]  For
  additional commands, e-mail: [EMAIL PROTECTED]  
 
 
 
  --
  ===
  === = Ljuba Veselinova Dept of Linguistics, Stockholm
  University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
  http://www.ling.su.se/staff/ljuba/
 
  We learn by going where we want to go.
   Julia Cameron
  ===
  === ==
 
  ---
  -- To start a new topic, e-mail: users

Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Ljuba Veselinova
 Good luck dealing with ESRI, I have to deal with ArcGIS at my part time job 
 and ESRI
 support isn't exactly helpful.


I have now wasted quite a bit of time with them and feel that I should
get this to work. But I completely agree with you -- dealing with
their support is quite a challenge.

Thanks again and have a good day.


Ljuba

 -Steve O.




 Ljuba
  I did a crude search on the documentation but nothing turned up.
 
  The docs. for the connector are at:
 
  http://tomcat.apache.org/connectors-doc/
 
 
  This will help also:
 
 
  http://tomcat.apache.org/connectors-doc/generic_howto/quick.html
 
 
  Remember to modify the JkMount directive as needed.
 
 
  -Steve O.
 
 
 
 
 
  Thanks again,
  Ljuba
 
  On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED]
  wrote:
   Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From:
   Ljuba Veselinova [EMAIL PROTECTED]  Subject:
  HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
  
  To: Tomcat Users List users@tomcat.apache.org
   Send reply to:  Tomcat Users List
  users@tomcat.apache.org 
   I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
  windows  XP machine. The ultimate goal is to install ArcIMS 9.2
  on this machien  but I am not there yet. For right now, I'm
  having connectivity issues  between Tomcat and Apache.   I am
  following the instructions from 
  http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.art
  icl
   eShowd=31524   The Apache seems to be succesfully installed
  but when I try to run the  HelloWorldExample, I get the following
  error   ===Error Screen Starts Here  HTTP Status 404
  - /examples/servlets/servlet/HelloWorldExample  
  ---
  ---
   --   type Status report   message
  /examples/servlets/servlet/HelloWorldExample   description The
  requested resource 
  (/examples/servlets/servlet/HelloWorldExample) is not available. 
   
  ---
  ---
   --   Apache Tomcat/5.5.17  Error
   Screen
  Ends here   Please advise on how correct this. Any pointer to
  relevant  documentation will be greatly appreciated as well.  
   The url is incorrect for Tomcat 5.5.x versions. The HelloWorld
  example is at   /servlets-examples/servlet/HelloWorldExample  
   The url provided is from Tomcat 6.x version.   Any urls you see
  above should be verified first by going through Tomcat first:  
  http://localhost:8080   then navigate through to where you need
  to go.These are the docs. for Tomcat 5.5  
  http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve
  O. 
   Thanks,  Ljuba   -- 
  ===
  ===
   = Ljuba Veselinova Dept of Linguistics, Stockholm
   University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
   
  http://www.ling.su.se/staff/ljuba/   We learn by going where
  we want to go.   Julia Cameron 
  ===
  ===
   ==  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe,  e-mail: [EMAIL PROTECTED] For
  additional commands,  e-mail: [EMAIL PROTECTED]   
  
  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org  To
  unsubscribe, e-mail: [EMAIL PROTECTED]  For
  additional commands, e-mail: [EMAIL PROTECTED]  
 
 
 
  --
  ===
  === = Ljuba Veselinova Dept of Linguistics, Stockholm
  University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
  http://www.ling.su.se/staff/ljuba/
 
  We learn by going where we want to go.
   Julia Cameron
  ===
  === ==
 
  ---
  -- To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe, e-mail: [EMAIL PROTECTED] For
  additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  
  - To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe, e-mail: [EMAIL PROTECTED] For
  additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/

 We learn by going where we want to go.
  Julia Cameron
 ==
 ==

 -
 To start a new topic, e-mail: users@tomcat.apache.org To 

Re: HTTP Status 404 - /docs/RELEASE-NOTES.txt

2007-04-08 Thread Rashmi Rubdi

On Tomcat 6.0.10 the Release Notes URL is at:
http://localhost:8080/RELEASE-NOTES.txt

I don't have a Tomcat lower than 6.0.10 so I can't tell if the URL is
wrong in may be 6.0 , but you can always upgrade to 6.0.10

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /docs/RELEASE-NOTES.txt

2007-04-08 Thread MERWYN C WELCOME
Thanks Rashmi,

I'm using Tomcat 6.0.10 too. So I guess that it's a bug report since the link 
points to http://localhost:8080/docs/RELEASE-NOTES.txt not 
http://localhost:8080/RELEASE-NOTES.txt. Any idea how I make a bug report?

-Merwyn

Rashmi Rubdi [EMAIL PROTECTED] wrote: On Tomcat 6.0.10 the Release Notes URL 
is at:
http://localhost:8080/RELEASE-NOTES.txt

I don't have a Tomcat lower than 6.0.10 so I can't tell if the URL is
wrong in may be 6.0 , but you can always upgrade to 6.0.10

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




\\|%|//
   | ~ ~ |
 ^( @ @ )^
 -o000o-\_/-o000o--

RE: HTTP Status 404 - /jsp-examples/

2006-08-02 Thread Propes, Barry L
that may need to be reconfigured in the server.xml file, within the Context 
path area.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 8:25 PM
To: users@tomcat.apache.org
Subject: HTTP Status 404 - /jsp-examples/


Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The
service is 
running under the same account that I used to install. I have setup the 
following environment variables:

CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: /usr/java14/jre/bin:/usr/java14/bin

The default page index.jsp from the webapps folder comes up okay and I
can 
perform most of the admin functions however the jsp-examples and
servelet 
examples return 404 error.

I have installed tomcat multiple times yet no luck.  Google has not been
of any 
help. In the bugs database, only reference I found was to check on the
tomcat 
users list.

Seems like tomcat is missing the context path for jsp-examples, where
would I 
check that? Shouldn't that be alreday defined in the default
configuration 
files.

Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
 NOTICE 
---

This message is for the designated recipient only and may contain confidential, 
privileged or proprietary information. If you have received it in error, please 
notify the sender immediately and delete the original and any copy or printout. 
Unintended recipients are prohibited from making any other use of this e-mail. 
Although we have taken reasonable precautions to ensure no viruses are present 
in this e-mail, we accept no liability for any loss or damage arising from the 
use of this e-mail or attachments, or for any delay or errors or omissions in 
the contents which result from e-mail transmission.

-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /jsp-examples/

2006-08-02 Thread sumit kumar

try to uncommented code in web.xml in tomcat/conf
servlet invoker and servlet-mapping tags. and restart your tomcat again.
good luck

On 8/2/06, Propes, Barry L [EMAIL PROTECTED] wrote:


that may need to be reconfigured in the server.xml file, within the
Context path area.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 8:25 PM
To: users@tomcat.apache.org
Subject: HTTP Status 404 - /jsp-examples/


Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The
service is
running under the same account that I used to install. I have setup the
following environment variables:

CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: /usr/java14/jre/bin:/usr/java14/bin

The default page index.jsp from the webapps folder comes up okay and I
can
perform most of the admin functions however the jsp-examples and
servelet
examples return 404 error.

I have installed tomcat multiple times yet no luck.  Google has not been
of any
help. In the bugs database, only reference I found was to check on the
tomcat
users list.

Seems like tomcat is missing the context path for jsp-examples, where
would I
check that? Shouldn't that be alreday defined in the default
configuration
files.

Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations

NOTICE ---

This message is for the designated recipient only and may contain
confidential, privileged or proprietary information. If you have received it
in error, please notify the sender immediately and delete the original and
any copy or printout. Unintended recipients are prohibited from making any
other use of this e-mail. Although we have taken reasonable precautions to
ensure no viruses are present in this e-mail, we accept no liability for any
loss or damage arising from the use of this e-mail or attachments, or for
any delay or errors or omissions in the contents which result from e-mail
transmission.

-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell

[EMAIL PROTECTED] wrote:

Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The
service is 
running under the same account that I used to install. I have setup the 
following environment variables:


CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: /usr/java14/jre/bin:/usr/java14/bin

The default page index.jsp from the webapps folder comes up okay and I
can 
perform most of the admin functions however the jsp-examples and
servelet 
examples return 404 error.


I have installed tomcat multiple times yet no luck.  Google has not been
of any 
help. In the bugs database, only reference I found was to check on the
tomcat 
users list.


Seems like tomcat is missing the context path for jsp-examples, where
would I 
check that? Shouldn't that be alreday defined in the default
configuration 
files.


Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
 NOTICE 
---

This message is for the designated recipient only and may contain confidential, 
privileged or proprietary information. If you have received it in error, please 
notify the sender immediately and delete the original and any copy or printout. 
Unintended recipients are prohibited from making any other use of this e-mail. 
Although we have taken reasonable precautions to ensure no viruses are present 
in this e-mail, we accept no liability for any loss or damage arising from the 
use of this e-mail or attachments, or for any delay or errors or omissions in 
the contents which result from e-mail transmission.

-

  
You didn't show an example of the url being called, so I must ask if you 
included the port on which tomcat is running in your call.

 ie http://host:8080/jsp-examples/some.jsp

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Prahlad.Thakur
I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows):

URL's tried:

Tomcat default page: http://host:8080/
Next, I clicked on the jsp examples link on the default Page, it
returned HTTP Status 404 - /jsp-examples/
  http://host:8080/jsp-examples/

I even tried individual pages, same 404 return code: HTTP Status 404 -
/jsp-examples/jsp2/simpletag/hello.jsp
http://host:8080/jsp-examples/jsp2/simpletag/hello.jsp



-Original Message-
From: Lou Caudell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 7:17 AM
To: Tomcat Users List
Subject: Re: HTTP Status 404 - /jsp-examples/

[EMAIL PROTECTED] wrote:
 Can't get the jsp-example to run, getting 404 error.

 I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The 
 service is running under the same account that I used to install. I 
 have setup the following environment variables:

   CATALINA_HOME
   CATALINA_BASE
   JAVA_HOME

 I have added following to the path: 
 /usr/java14/jre/bin:/usr/java14/bin

 The default page index.jsp from the webapps folder comes up okay and I

 can perform most of the admin functions however the jsp-examples and 
 servelet examples return 404 error.

 I have installed tomcat multiple times yet no luck.  Google has not 
 been of any help. In the bugs database, only reference I found was to 
 check on the tomcat users list.

 Seems like tomcat is missing the context path for jsp-examples, where 
 would I check that? Shouldn't that be alreday defined in the default 
 configuration files.

 Please advise, I am really frustrated.  Thanks!


 Email Firewall made the following annotations
 --
 -- NOTICE ---

 This message is for the designated recipient only and may contain
confidential, privileged or proprietary information. If you have
received it in error, please notify the sender immediately and delete
the original and any copy or printout. Unintended recipients are
prohibited from making any other use of this e-mail. Although we have
taken reasonable precautions to ensure no viruses are present in this
e-mail, we accept no liability for any loss or damage arising from the
use of this e-mail or attachments, or for any delay or errors or
omissions in the contents which result from e-mail transmission.

 -

   
You didn't show an example of the url being called, so I must ask if you
included the port on which tomcat is running in your call.
  ie http://host:8080/jsp-examples/some.jsp

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Christopher Schultz
Prahlad,

 URL's tried:
 
 Tomcat default page: http://host:8080/
 Next, I clicked on the jsp examples link on the default Page, it
 returned HTTP Status 404 - /jsp-examples/
   http://host:8080/jsp-examples/
 
 I even tried individual pages, same 404 return code: HTTP Status 404 -
 /jsp-examples/jsp2/simpletag/hello.jsp
 http://host:8080/jsp-examples/jsp2/simpletag/hello.jsp

Try looking at the server.xml file for Tomcat to see if the examples
context is actually enabled. It might be commented-out or otherwise
disabled. I don't have much experience with Tomcats after 4.1.32 :O but
there are new ways of deploying webapps that you might have to check.

When in doubt, check the auto-deply WAR directory to see if
jsp-examples.war or anything like that is in there.

-chris




signature.asc
Description: OpenPGP digital signature


Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell

[EMAIL PROTECTED] wrote:

I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows):

URL's tried:

Tomcat default page: http://host:8080/
Next, I clicked on the jsp examples link on the default Page, it
returned HTTP Status 404 - /jsp-examples/
  http://host:8080/jsp-examples/

I even tried individual pages, same 404 return code: HTTP Status 404 -
/jsp-examples/jsp2/simpletag/hello.jsp
http://host:8080/jsp-examples/jsp2/simpletag/hello.jsp



-Original Message-
From: Lou Caudell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 7:17 AM

To: Tomcat Users List
Subject: Re: HTTP Status 404 - /jsp-examples/

[EMAIL PROTECTED] wrote:
  

Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The 
service is running under the same account that I used to install. I 
have setup the following environment variables:


CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: 
/usr/java14/jre/bin:/usr/java14/bin


The default page index.jsp from the webapps folder comes up okay and I



  
can perform most of the admin functions however the jsp-examples and 
servelet examples return 404 error.


I have installed tomcat multiple times yet no luck.  Google has not 
been of any help. In the bugs database, only reference I found was to 
check on the tomcat users list.


Seems like tomcat is missing the context path for jsp-examples, where 
would I check that? Shouldn't that be alreday defined in the default 
configuration files.


Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
--
-- NOTICE ---

This message is for the designated recipient only and may contain


confidential, privileged or proprietary information. If you have
received it in error, please notify the sender immediately and delete
the original and any copy or printout. Unintended recipients are
prohibited from making any other use of this e-mail. Although we have
taken reasonable precautions to ensure no viruses are present in this
e-mail, we accept no liability for any loss or damage arising from the
use of this e-mail or attachments, or for any delay or errors or
omissions in the contents which result from e-mail transmission.
  

-

  


You didn't show an example of the url being called, so I must ask if you
included the port on which tomcat is running in your call.
  ie http://host:8080/jsp-examples/some.jsp

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
Sounds silly, but I would place a simple html file in the directory to 
determine the status of your tomcat instance. Actually the default page 
at http://host:8080/ should be there. It's always a good idea to 
install all of the management/sample tools the first time on a new platform.


- Lou Caudell
(Notice: This party reserves all rights)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Martin Gainty

Lou-
I have noted these maladies can happen when Tomcat's default-servlet is not 
configured correctly
Please display configuration for defaultServlet located at 
$CATALINA_HOME/conf/web.xml

(it should look something like)

servlet
   servlet-namedefault/servlet-name
   servlet-class
 org.apache.catalina.servlets.DefaultServlet
   /servlet-class
   init-param
   param-namedebug/param-name
   param-value0/param-value
   /init-param
   init-param
   param-namelistings/param-name
   param-valuetrue/param-value
   /init-param
   load-on-startup1/load-on-startup
   /servlet
...
   servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern//url-pattern
   /servlet-mapping


doc available at
http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html#what

HTH,
Martin--
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




[EMAIL PROTECTED] wrote:

I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows):

URL's tried:

Tomcat default page: http://host:8080/
Next, I clicked on the jsp examples link on the default Page, it
returned HTTP Status 404 - /jsp-examples/
  http://host:8080/jsp-examples/

I even tried individual pages, same 404 return code: HTTP Status 404 -
/jsp-examples/jsp2/simpletag/hello.jsp
http://host:8080/jsp-examples/jsp2/simpletag/hello.jsp



-Original Message-
From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 
2006 7:17 AM

To: Tomcat Users List
Subject: Re: HTTP Status 404 - /jsp-examples/

[EMAIL PROTECTED] wrote:


Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The 
service is running under the same account that I used to install. I have 
setup the following environment variables:


CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: /usr/java14/jre/bin:/usr/java14/bin

The default page index.jsp from the webapps folder comes up okay and I




can perform most of the admin functions however the jsp-examples and 
servelet examples return 404 error.


I have installed tomcat multiple times yet no luck.  Google has not been 
of any help. In the bugs database, only reference I found was to check on 
the tomcat users list.


Seems like tomcat is missing the context path for jsp-examples, where 
would I check that? Shouldn't that be alreday defined in the default 
configuration files.


Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
--
-- NOTICE ---

This message is for the designated recipient only and may contain


confidential, privileged or proprietary information. If you have
received it in error, please notify the sender immediately and delete
the original and any copy or printout. Unintended recipients are
prohibited from making any other use of this e-mail. Although we have
taken reasonable precautions to ensure no viruses are present in this
e-mail, we accept no liability for any loss or damage arising from the
use of this e-mail or attachments, or for any delay or errors or
omissions in the contents which result from e-mail transmission.


-



You didn't show an example of the url being called, so I must ask if you
included the port on which tomcat is running in your call.
  ie http://host:8080/jsp-examples/some.jsp

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Sounds silly, but I would place a simple html file in the directory to 
determine the status of your tomcat instance. Actually the default page at 
http://host:8080/ should be there. It's always a good idea to install all 
of the management/sample tools the first time on a new platform.


- Lou Caudell
(Notice: This party reserves all rights)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell

Martin Gainty wrote:

Lou-
I have noted these maladies can happen when Tomcat's default-servlet 
is not configured correctly
Please display configuration for defaultServlet located at 
$CATALINA_HOME/conf/web.xml

(it should look something like)

servlet
   servlet-namedefault/servlet-name
   servlet-class
 org.apache.catalina.servlets.DefaultServlet
   /servlet-class
   init-param
   param-namedebug/param-name
   param-value0/param-value
   /init-param
   init-param
   param-namelistings/param-name
   param-valuetrue/param-value
   /init-param
   load-on-startup1/load-on-startup
   /servlet
...
   servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern//url-pattern
   /servlet-mapping


doc available at
http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html#what

HTH,
Martin--
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and 
Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained 
within this transmission.




[EMAIL PROTECTED] wrote:
I have tomcat 5.0.28 installed under AIX 5.03 (no issues under 
Windows):


URL's tried:

Tomcat default page: http://host:8080/
Next, I clicked on the jsp examples link on the default Page, it
returned HTTP Status 404 - /jsp-examples/
  http://host:8080/jsp-examples/

I even tried individual pages, same 404 return code: HTTP Status 404 -
/jsp-examples/jsp2/simpletag/hello.jsp
http://host:8080/jsp-examples/jsp2/simpletag/hello.jsp



-Original Message-
From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 
01, 2006 7:17 AM

To: Tomcat Users List
Subject: Re: HTTP Status 404 - /jsp-examples/

[EMAIL PROTECTED] wrote:


Can't get the jsp-example to run, getting 404 error.

I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. 
The service is running under the same account that I used to 
install. I have setup the following environment variables:


CATALINA_HOME
CATALINA_BASE
JAVA_HOME

I have added following to the path: 
/usr/java14/jre/bin:/usr/java14/bin


The default page index.jsp from the webapps folder comes up okay and I




can perform most of the admin functions however the jsp-examples 
and servelet examples return 404 error.


I have installed tomcat multiple times yet no luck.  Google has not 
been of any help. In the bugs database, only reference I found was 
to check on the tomcat users list.


Seems like tomcat is missing the context path for jsp-examples, 
where would I check that? Shouldn't that be alreday defined in the 
default configuration files.


Please advise, I am really frustrated.  Thanks!


Email Firewall made the following annotations
--
-- NOTICE ---

This message is for the designated recipient only and may contain


confidential, privileged or proprietary information. If you have
received it in error, please notify the sender immediately and delete
the original and any copy or printout. Unintended recipients are
prohibited from making any other use of this e-mail. Although we have
taken reasonable precautions to ensure no viruses are present in this
e-mail, we accept no liability for any loss or damage arising from the
use of this e-mail or attachments, or for any delay or errors or
omissions in the contents which result from e-mail transmission.


-


You didn't show an example of the url being called, so I must ask if 
you

included the port on which tomcat is running in your call.
  ie http://host:8080/jsp-examples/some.jsp

8080 is the default, but it can be changed in the server.xml file.
- Lou Caudell
(Notice: This party reserves all rights)

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Sounds silly, but I would place a simple html file in the directory 
to determine the status of your tomcat instance. Actually the default 
page at http://host:8080/ should be there. It's always a good idea 
to install all of the management/sample tools the first time on a new 
platform.


- Lou Caudell
(Notice: This party reserves all rights)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional

RE: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Prahlad . Thakur
I checked the $CATALINA_HOME/conf/web.xml, it does have the save default
Servlet configuration as in your note. I will look further in the doc
link you sent.

The Admin and manager functions work fine clicking on the links from in
the default page. 

Thanks,
Paul


Email Firewall made the following annotations
 NOTICE 
---

This message is for the designated recipient only and may contain confidential, 
privileged or proprietary information. If you have received it in error, please 
notify the sender immediately and delete the original and any copy or printout. 
Unintended recipients are prohibited from making any other use of this e-mail. 
Although we have taken reasonable precautions to ensure no viruses are present 
in this e-mail, we accept no liability for any loss or damage arising from the 
use of this e-mail or attachments, or for any delay or errors or omissions in 
the contents which result from e-mail transmission.

-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]