Re: Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-11 Thread John Barrow
Mark,

Thanks for your corrections. I have updated my internal "How to" guide that
I created when I first used Tomcat to build my servlets and it appears that
some of my deductions from that initial research and "getting it to work"
were misguided.

John

On Wed, 11 Jan 2023, 09:28 Mark Thomas,  wrote:

>
>
> On 10/01/2023 22:34, John Barrow wrote:
> > Hi Anthony,
> >
> > Not an expert, but have managed to deploy simple servlets. A couple of
> > observations, not sure why using ROOT, you should have your own folder
> for
> > your application (e.g. myFirstApp\...).
>
> Not true. ROOT is an acceptable option here.
>
> > Also, I have found that the main app folder (e.g. myFirstApp) must start
> > with a lowercase letter (I don't know reason for this but have it in my
> > notes) otherwise the servlets won't be found when accessing them through
> a
> > browser.
>
> Also not true. You may be mixing the rules for Java package names with
> those for context paths.
>
> > Finally, the default install for TomCat has several example servlets
> > already written so check that they work first and then take the sources
> and
> > clone them, using them as a guide for your own servlets.
> >
> > John
> >
> > PS: Probably worth reviewing what file names you use (see your
> webapps.xml
> > file) when making public requests so as not to inadvertently offend
> anyone.
>
> +1
>
> Mark
>
> >
> > On Tue, 10 Jan 2023, 18:59 Anthony Dell'Anno,
> >  wrote:
> >
> >> Good afternoon,
> >>
> >>  I'm trying to run my first servlet on Tomcat, and am continually
> >> getting an HTTP Status 404 (I've also gotten 500 previously, with the
> root
> >> cause being an apparent compiler mismatch (it would say that it's being
> >> compiled by version 63.0, which is Java 19, but that the latest version
> >> that was currently accepted was version 59.0, or Java 15), but then
> after
> >> upgrading to JDK 19, changing the JAVA_HOME variable and trying to run,
> it
> >> would still give me the same error)?
> >>
> >>  I have my Servlet, called HelloWorldServlet, located in the
> >> "C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory, with
> the
> >> web.xml file being located outside of the classes folder, directly
> inside
> >> of the WEB-INF folder.
> >>
> >>  I've included both files. StackOverflow wasn't much help as of
> yet, so
> >> I'm hoping that the Tomcat Users community can help me solve this so
> that I
> >> can continue learning servlets. I'm working on building my own software
> >> company.
> >>
> >> Any help is appreciated.
> >>
> >> Thank you very much,
> >>
> >> Anthony Dell'Anno
> >>
> >> -
> >> 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: Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-11 Thread Mark Thomas




On 10/01/2023 22:34, John Barrow wrote:

Hi Anthony,

Not an expert, but have managed to deploy simple servlets. A couple of
observations, not sure why using ROOT, you should have your own folder for
your application (e.g. myFirstApp\...).


Not true. ROOT is an acceptable option here.


Also, I have found that the main app folder (e.g. myFirstApp) must start
with a lowercase letter (I don't know reason for this but have it in my
notes) otherwise the servlets won't be found when accessing them through a
browser.


Also not true. You may be mixing the rules for Java package names with 
those for context paths.



Finally, the default install for TomCat has several example servlets
already written so check that they work first and then take the sources and
clone them, using them as a guide for your own servlets.

John

PS: Probably worth reviewing what file names you use (see your webapps.xml
file) when making public requests so as not to inadvertently offend anyone.


+1

Mark



On Tue, 10 Jan 2023, 18:59 Anthony Dell'Anno,
 wrote:


Good afternoon,

 I'm trying to run my first servlet on Tomcat, and am continually
getting an HTTP Status 404 (I've also gotten 500 previously, with the root
cause being an apparent compiler mismatch (it would say that it's being
compiled by version 63.0, which is Java 19, but that the latest version
that was currently accepted was version 59.0, or Java 15), but then after
upgrading to JDK 19, changing the JAVA_HOME variable and trying to run, it
would still give me the same error)?

 I have my Servlet, called HelloWorldServlet, located in the
"C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory, with the
web.xml file being located outside of the classes folder, directly inside
of the WEB-INF folder.

 I've included both files. StackOverflow wasn't much help as of yet, so
I'm hoping that the Tomcat Users community can help me solve this so that I
can continue learning servlets. I'm working on building my own software
company.

Any help is appreciated.

Thank you very much,

Anthony Dell'Anno

-
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: Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-10 Thread Christopher Schultz

Anthony,

On 1/10/23 13:58, Anthony Dell'Anno wrote:

I'm trying to run my first servlet on Tomcat


Welcome!


and am continually getting an HTTP Status 404 (I've also gotten 500
previously, with the root cause being an apparent compiler mismatch
(it would say that it's being compiled by version 63.0, which is Java
19, but that the latest version that was currently accepted was
version 59.0, or Java 15), but then after upgrading to JDK 19,
changing the JAVA_HOME variable and trying to run, it would still
give me the same error)?


Any error like "Unsupported class version 63.0" or similar will be due 
to a JVM mismatch. There are three ways to correct this:


1. Compile with an earlier JVM
2. Run with a later JVM
3. Specify the target JVM with the compiler. This can be done with the 
"-target" compiler switch in modern compilers


I have my Servlet, called HelloWorldServlet, located in the 
"C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory


This isn't a good choice, but will work. I can get back to this, later. 
Is your servlet compiled into a .class file, or do you have a .java file 
in that directory (or both, which is fine)?



with the web.xml file being located outside of the classes folder,
directly inside of the WEB-INF folder.


That's where it belongs. The "ROOT" directory contains the entire web 
application, and WEB-INF is a special directory which can contain:


classes/**/*.class [classes, usually your application]
lib/*.jar [libraries, usually from elsewhere]
web.xml [the deployment descriptor]

I've included both files. StackOverflow wasn't much help as of yet, 
The mailing list often strips attachments, but your plain-text 
attachment made it through. It's much less helpful as an attachment than 
if it were inline, so I'm going to post it here so I can comment on it, 
and also so others can read it without having to detach it:


(I've performed some light editing, which I hope you'll understand.)




  
  

HelloWorldServlet
webapps.HelloXXXServlet
  

  
HelloWorldServlet

/HelloWorld

  




What is the name of the servlet class itself? You said you have a file 
in WEB-INF/classes called HelloWorldServlet. If that's the class name, 
then it should be in the file HelloWorldServlet.class. In your 
configuration, you have servlet.HelloXXXServlet which is definitely wrong.


If your class name is actually HelloXXXServlet, then you need:

  
  

HelloWorldServlet
HelloXXXServlet
  

The servlet class needs to be the "fully qualified name" of the class, 
which will be the package name (which is nothing in your case) followed 
by a period (if it's in a package, which it isn't) followed by the short 
name of the class (HelloXXXServlet).


The "webapps." was completely incorrect, and it's not clear to me 
exactly what the class name actually is, but I think you should be able 
to get it from here.


The  is something you can make-up and is only used within 
web.xml for the purposes of defining a  and then mapping it 
later in  (and other things, actually, but you aren't 
working with any of those quite yet).


Back to the "don't put your files into WEB-INF/classes" comment I made 
above: it's a good idea to put all of your code into "packages". In 
Java, that means:


1. Putting your class source e.g. HelloXXXServlet.java into a directory 
which matches the package. So if your package will be 
"anthony.dellanno", then you need to have your file in 
src/anthony/dellanno/HelloXXXServlet.java. When compiled, this file 
needs to go into WEB-INF/classes/anthony/dellanno/HelloXXXSServlet.class


2. In your .java file, you need to add at this at the top of the file:

package anthony.dellanno;

Once you do that, you'll change the "fully qualified class name" in 
web.xml to this:


  
HelloWorldServlet
anthony.dellanno.HelloXXXServlet
  

And everything else is the same.


so I'm hoping that the Tomcat Users community can help me solve this
so that I can continue learning servlets. I'm working on building my
own software  company.
I highly recommend that anyone working with Java Servlets actually read 
the Java Servlet Specification -- whatever version makes sense for you 
to read. Almost any of them would be good, since there is little change 
between versions for the most part.


Nick Williams wrote a comprehensive (and I mean comprehensive!) book in 
2014 which – despite its age (9 years ago) – is still entirely relevant. 
It's called Professional Java for Web Applications. It guides you 
through these basics and goes all the way up through databases, 
WebSocket, and using the Spring Framework (which he favors in the book; 
other frameworks are available as well).


You can also probably find something similar as your local library if 
you don't want to pay $50 for a dead tree that takes up space on your 
shelf forever.


Hope that he

Re: Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-10 Thread John Barrow
Hi Anthony,

Not an expert, but have managed to deploy simple servlets. A couple of
observations, not sure why using ROOT, you should have your own folder for
your application (e.g. myFirstApp\...).

Also, I have found that the main app folder (e.g. myFirstApp) must start
with a lowercase letter (I don't know reason for this but have it in my
notes) otherwise the servlets won't be found when accessing them through a
browser.

Finally, the default install for TomCat has several example servlets
already written so check that they work first and then take the sources and
clone them, using them as a guide for your own servlets.

John

PS: Probably worth reviewing what file names you use (see your webapps.xml
file) when making public requests so as not to inadvertently offend anyone.

On Tue, 10 Jan 2023, 18:59 Anthony Dell'Anno,
 wrote:

> Good afternoon,
>
> I'm trying to run my first servlet on Tomcat, and am continually
> getting an HTTP Status 404 (I've also gotten 500 previously, with the root
> cause being an apparent compiler mismatch (it would say that it's being
> compiled by version 63.0, which is Java 19, but that the latest version
> that was currently accepted was version 59.0, or Java 15), but then after
> upgrading to JDK 19, changing the JAVA_HOME variable and trying to run, it
> would still give me the same error)?
>
> I have my Servlet, called HelloWorldServlet, located in the
> "C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory, with the
> web.xml file being located outside of the classes folder, directly inside
> of the WEB-INF folder.
>
> I've included both files. StackOverflow wasn't much help as of yet, so
> I'm hoping that the Tomcat Users community can help me solve this so that I
> can continue learning servlets. I'm working on building my own software
> company.
>
> Any help is appreciated.
>
> Thank you very much,
>
> Anthony Dell'Anno
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-10 Thread Anthony Dell'Anno
Good afternoon, 
    I'm trying to run my first servlet on Tomcat, and am continually getting an 
HTTP Status 404 (I've also gotten 500 previously, with the root cause being an 
apparent compiler mismatch (it would say that it's being compiled by version 
63.0, which is Java 19, but that the latest version that was currently accepted 
was version 59.0, or Java 15), but then after upgrading to JDK 19, changing the 
JAVA_HOME variable and trying to run, it would still give me the same error)?

I have my Servlet, called HelloWorldServlet, located in the 
"C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory, with the 
web.xml file being located outside of the classes folder, directly inside of 
the WEB-INF folder.
    I've included both files. StackOverflow wasn't much help as of yet, so I'm 
hoping that the Tomcat Users community can help me solve this so that I can 
continue learning servlets. I'm working on building my own software  company.

Any help is appreciated.
Thank you very much,
Anthony Dell'Anno 

	 
	
		 
		
			HelloWorldServlet 
			webapps.HelloMotherFuckerServlet 
			
		 
		
		 
		
			HelloWorldServlet 
			/HelloWorld 
			
			
			
	 
	

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


http status 404 - not found

2018-11-17 Thread Karen Goh
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.

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: tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 2/26/15 11:26 AM, Mark Shifman wrote:
 This is truly embarrassing since I have the manager running fine
 on tomcat 7.
 
 http://localhost:8080/manager/status returns 127.0.0.1 - -
 [26/Feb/2015:10:47:11 -0500] GET /manager/status HTTP/1.1 404
 1022
 
 http://localhost:8080/manager/html returns 127.0.0.1 - -
 [26/Feb/2015:11:00:40 -0500] GET /manager/html HTTP/1.1 404 1018

This works for me. What client are you using? Just a web browser?

The 404 seems odd.

 I am starting tomcat 8.0.20 with jsvc and running tomcat as mas

That shouldn't matter, but it's good information to have. Thanks.

 Feb 26, 2015 10:37:23 AM org.apache.catalina.startup.HostConfig 
 deployDirectory INFO: Deployment of web application directory 
 /home/apache-tomcat-8.0.20/webapps/manager has finished in 326 ms

Good. Do you have anything other than the default Host setup in
server.xml? The only thing I can think of is that the manager
application is only available in a particular vhost, and you are using
localhost which isn't mapped to it.

 so it looks like the manager is started.
 
 tomcat-users.xml is shown below: ?xml version='1.0'
 encoding='utf-8'? !-- Licensed to the Apache Software Foundation
 (ASF) under one or more contributor license agreements.  See the
 NOTICE file distributed with this work for additional information
 regarding copyright ownership. The ASF licenses this file to You
 under the Apache License, Version 2.0 (the License); you may not
 use this file except in compliance with the License.  You may
 obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an AS IS
 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 or implied. See the License for the specific language governing
 permissions and limitations under the License. -- tomcat-users
 xmlns=http://tomcat.apache.org/xml; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://tomcat.apache.org/xml tomcat-users.xsd 
 version=1.0 !-- NOTE:  By default, no user is included in the
 manager-gui role required to operate the /manager/html web
 application.  If you wish to use this app, you must define such a
 user - the username and password are arbitrary. -- role
 rolename=manager-gui/ role rolename=manager-script/ user
 username=mas password=masxxx 
 roles=manager-gui,manager-script/ /tomcat-users
 
 
 The file permissions are show below: ls -lrt
 /home/apache-tomcat-8.0.20/conf -rw--- 1 mas mas   1893 Feb 26
 09:49 tomcat-users.xml

I think you'd get errors if that file weren't readable by the Tomcat user.

My setup is nearly identical, and I have no problem getting in. My
only obvious differences:

1. I don't have any xmlns, etc. attributes in my tomcat-users
element. Likely not the problem.

2. I only have a single role defined for my gui user. I suspect this
is also not the problem, but is easy to check.

I would triple-check that all the files are in the right places and
have exactly what you think is in them.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU709uAAoJEBzwKT+lPKRY9S0P/jcXQYvXQPJeGS6NuVyEh/OU
IxzmOtDYQUuK/BKFlH/DA8R3PjUOca+fV4dHNOahgrjPNa3L7kwLrHVTuqhmdGFV
9Vr+cqq0FZFAdg1swWadXtzAe9ZXa0hxCGYhDjhSVyNVj3jWcl3POWrVrNXlxQch
q5uaEf2Z+O3jOdpQpfPfxesYJRRFZWdlgW5QGtwoNxRgjrWGIWXAHGBT/kEdsKSk
A1xDa7s3hVuDHnWuI0zV+LMl9DZrSqm0HeenftAk6DI9TO+2PJjCGeF38cKJOiJ5
xqjhh1ldbx7eWtJoPJ4O5foXx0tGqycrliRxoJ1b7PlPRc5l1vXfeQLKOucy2T0s
uGEasllku8Spo004M9CQ9qHpmkSQDgXZ99py1KLnT7403rrTZ4sBtuwnlldEfnP/
mfdjMqWfZc3C9V81hCfSxPYcHJEdVo76+30Rxith9FRcl78OTicxDwx5qC9lv478
H0bBYooI/B1W5//Me+HyoGH+s7z75YMEWYvrS3BQiBad+PF+be3E43DsO22uTBWW
coQeEbVY+KYUvqc3JTGlWc4fr/6iefpeX+rn3G05p8n0Fo95aC0pN1XsS+xrfWm3
ots4anEou85AURStOdbwV3WI7lX5QBEchj6WX1ucPnG/XX19caSNqomXYOZHbd3R
kLnapCJMEZIdnn2GoLH8
=nEgw
-END PGP SIGNATURE-

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



tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Mark Shifman

This is truly embarrassing since I have the manager running fine  on tomcat 7.

http://localhost:8080/manager/status
returns
127.0.0.1 - - [26/Feb/2015:10:47:11 -0500] GET /manager/status HTTP/1.1 404 
1022

http://localhost:8080/manager/html
returns
127.0.0.1 - - [26/Feb/2015:11:00:40 -0500] GET /manager/html HTTP/1.1 404 1018

I am starting tomcat 8.0.20 with jsvc and running tomcat as mas

catalina.out shows

Feb 26, 2015 10:37:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory 
/home/apache-tomcat-8.0.20/webapps/manager has finished in 326 ms

so it looks like the manager is started.

tomcat-users.xml is shown below:
?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
tomcat-users xmlns=http://tomcat.apache.org/xml;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://tomcat.apache.org/xml tomcat-users.xsd
  version=1.0
!--
  NOTE:  By default, no user is included in the manager-gui role required
  to operate the /manager/html web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
--
  role rolename=manager-gui/
  role rolename=manager-script/
  user username=mas password=masxxx roles=manager-gui,manager-script/
/tomcat-users


The file permissions are show below:
 ls -lrt /home/apache-tomcat-8.0.20/conf
-rw--- 1 mas mas   1893 Feb 26 09:49 tomcat-users.xml

There is obviously something egregious I have done or missed but I can't find 
it.

any help appreciated.

mas


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu


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



Re: tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Mark Shifman



On 02/26/2015 11:26 AM, Mark Shifman wrote:

This is truly embarrassing since I have the manager running fine  on tomcat 7.

https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_manager_statusd=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=oRaGhibZvAOGCqQay4tltXaYNS7R8Coq6rBIG-D3CEke=
 returns
127.0.0.1 - - [26/Feb/2015:10:47:11 -0500] GET /manager/status HTTP/1.1 404 
1022

https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_manager_htmld=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=zZwSEgq3pjJ2377O8SahLwmRSvTTnayriks9TAXl9Qge=
 returns
127.0.0.1 - - [26/Feb/2015:11:00:40 -0500] GET /manager/html HTTP/1.1 404 1018

I am starting tomcat 8.0.20 with jsvc and running tomcat as mas

catalina.out shows

Feb 26, 2015 10:37:23 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory 
/home/apache-tomcat-8.0.20/webapps/manager has finished in 326 ms

so it looks like the manager is started.

tomcat-users.xml is shown below:
?xml version='1.0' encoding='utf-8'?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

https://urldefense.proofpoint.com/v2/url?u=http-3A__www.apache.org_licenses_LICENSE-2D2.0d=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=JvGEREmyRh9iXqaeKQyCHUrcjD1O_2toZhlSNaDW5W0e=
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
tomcat-users 
xmlns=https://urldefense.proofpoint.com/v2/url?u=http-3A__tomcat.apache.org_xmld=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=RZuTCXhEBaQzBY9YA5BW3-AQ2-yfRVkpPVxCPhW5m8ge=
 
xmlns:xsi=https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstanced=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=1g4xwwiqhgqK92eD5QBc-w_9EO2Z_Owc9toWZogUkTce=
 
xsi:schemaLocation=https://urldefense.proofpoint.com/v2/url?u=http-3A__tomcat.apache.org_xmld=AwIC-gc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=t8sx2oxLU2xFh_hEfhXwWU4fIqfFYmqPF9q4PmUBS_Qs=RZuTCXhEBaQzBY9YA5BW3-AQ2-yfRVkpPVxCPhW5m8ge=
 tomcat-users.xsd
  version=1.0
!--
  NOTE:  By default, no user is included in the manager-gui role required
  to operate the /manager/html web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
--
  role rolename=manager-gui/
  role rolename=manager-script/
  user username=mas password=masxxx roles=manager-gui,manager-script/
/tomcat-users


The file permissions are show below:
 ls -lrt /home/apache-tomcat-8.0.20/conf
-rw--- 1 mas mas   1893 Feb 26 09:49 tomcat-users.xml

There is obviously something egregious I have done or missed but I can't find 
it.

any help appreciated.

mas



server.xml contains:
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

and
  Realm className=org.apache.catalina.realm.LockOutRealm
!-- This Realm uses the UserDatabase configured in the global JNDI
 resources under the key UserDatabase.  Any edits
 that are performed against this UserDatabase are immediately
 available for use by the Realm.  --
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase/
  /Realm

--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu


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



Re: tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Mark Shifman



On 02/26/2015 12:52 PM, Konstantin Kolinko wrote:

2015-02-26 19:26 GMT+03:00 Mark Shifman mark.shif...@yale.edu:

This is truly embarrassing since I have the manager running fine  on tomcat
7.

https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_manager_statusd=AwIBaQc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=qAAyZ6f2PpvD8ZHfq17E7vm0di_oOBZ5L417zIFArJos=CKor4EvRLf9Xl_PoOL58dKcTnpRepmn-UxWIo91RQJMe=
returns
127.0.0.1 - - [26/Feb/2015:10:47:11 -0500] GET /manager/status HTTP/1.1
404 1022

https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_manager_htmld=AwIBaQc=-dg2m7zWuuDZ0MUcV7Sdqwr=oZj4zInar3jeBECJ7OuBEMWJwBrzGeex-klf3JCRGssm=qAAyZ6f2PpvD8ZHfq17E7vm0di_oOBZ5L417zIFArJos=ODlwW-mr7a0mrNGd3WNAoZw6kQbhUEwZF7jBixbqgoAe=
returns
127.0.0.1 - - [26/Feb/2015:11:00:40 -0500] GET /manager/html HTTP/1.1 404
1018

I am starting tomcat 8.0.20 with jsvc and running tomcat as mas

catalina.out shows

Feb 26, 2015 10:37:23 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
/home/apache-tomcat-8.0.20/webapps/manager has finished in 326 ms

so it looks like the manager is started.

No. The above message just displays timing (some people were
interested in how long the deployment takes). The same text is used
regardless of success or failure.

404 usually means that the web application is not running. In that
situation the request is served by the ROOT webapp, not by manager
webapp. (It is visible if either the ROOT webapp or the manager webapp
has its own configuration of AccessLogValve).

Do you have the files in /home/apache-tomcat-8.0.20/webapps/manager ?

Thanks for the suggestion.  I modified the context.xml then changed it back to 
the original leaving
a context.xml~ file hanging around. This must have been the problem.

Your suggestion made me replace that manager with  a clean virginal copy of 
manager.jar from the tar ball.

Afterwards, everything worked like a charm.

Thanks to all.
mas



Any chance that you are starting with Java Security Manager being
enabled? In this case you should see error messages in the logs.

Best regards,
Konstantin Kolinko

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



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shif...@yale.edu


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



Re: tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Konstantin Kolinko
2015-02-26 19:26 GMT+03:00 Mark Shifman mark.shif...@yale.edu:
 This is truly embarrassing since I have the manager running fine  on tomcat
 7.

 http://localhost:8080/manager/status
 returns
 127.0.0.1 - - [26/Feb/2015:10:47:11 -0500] GET /manager/status HTTP/1.1
 404 1022

 http://localhost:8080/manager/html
 returns
 127.0.0.1 - - [26/Feb/2015:11:00:40 -0500] GET /manager/html HTTP/1.1 404
 1018

 I am starting tomcat 8.0.20 with jsvc and running tomcat as mas

 catalina.out shows

 Feb 26, 2015 10:37:23 AM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deployment of web application directory
 /home/apache-tomcat-8.0.20/webapps/manager has finished in 326 ms

 so it looks like the manager is started.

No. The above message just displays timing (some people were
interested in how long the deployment takes). The same text is used
regardless of success or failure.

404 usually means that the web application is not running. In that
situation the request is served by the ROOT webapp, not by manager
webapp. (It is visible if either the ROOT webapp or the manager webapp
has its own configuration of AccessLogValve).

Do you have the files in /home/apache-tomcat-8.0.20/webapps/manager ?

Any chance that you are starting with Java Security Manager being
enabled? In this case you should see error messages in the logs.

Best regards,
Konstantin Kolinko

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



Http Status 404

2014-02-06 Thread Shivam Mishra
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


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


  

Fwd: HTTP Status 404 - /xmlui error

2012-10-12 Thread sharika menon
-- Forwarded message --
From: sharika menon sharika.me...@tges.org
Date: Fri, Oct 12, 2012 at 10:47 AM
Subject: Re: HTTP Status 404 - /xmlui error
To: users-h...@tomcat.apache.org


Hi again!


On Fri, Oct 12, 2012 at 10:34 AM, sharika menon sharika.me...@tges.orgwrote:

 Good Morning!

 I had configured DSpace 1.8.2 version on windows 7. It was working fine
 but now I am getting *HTTP Status 404* - /*xmlui* error. I am getting the
 same error with *jspui*. Unfortunately, that 404 error message doesn't
 provide enough information to help diagnose the problem.

 I tried to start jspui/xmlui application from Tomcat Web Application
 Manager but it still showing false running with a message below :-


 *Message:*

 FAIL - Application at context path /jspui could not be started


 While finding the leaks it showing the below message :-

 *Message:*

 No web applications appear to have triggered a memory leak on stop, reload or 
 undeploy.


 If you could guide me for the same.

 Thanks in Advance!

 --
 Happy Networking!!

 Warm Regards,

 Sharika Menon



 *Be who you really are. – If you’re lucky enough to have something that
 makes you different from everybody else, don’t change. Uniqueness is
 priceless. In this crazy world that’s trying to make you like everyone
 else, find the courage to keep being your awesome self. And when they laugh
 at you for being different, laugh back at them for being the same. It takes
 a lot of courage to stand alone, but it’s worth it. Being YOU is worth it!
 *




-- 
Happy Networking!!

Warm Regards,

Sharika Menon



*Be who you really are. – If you’re lucky enough to have something that
makes you different from everybody else, don’t change. Uniqueness is
priceless. In this crazy world that’s trying to make you like everyone
else, find the courage to keep being your awesome self. And when they laugh
at you for being different, laugh back at them for being the same. It takes
a lot of courage to stand alone, but it’s worth it. Being YOU is worth it!*



-- 
Happy Networking!!

Warm Regards,

Sharika Menon



*Be who you really are. – If you’re lucky enough to have something that
makes you different from everybody else, don’t change. Uniqueness is
priceless. In this crazy world that’s trying to make you like everyone
else, find the courage to keep being your awesome self. And when they laugh
at you for being different, laugh back at them for being the same. It takes
a lot of courage to stand alone, but it’s worth it. Being YOU is worth it!*


Re: Fwd: HTTP Status 404 - /xmlui error

2012-10-12 Thread André Warnier


And the question is ? ...


sharika menon wrote:

-- Forwarded message --
From: sharika menon sharika.me...@tges.org
Date: Fri, Oct 12, 2012 at 10:47 AM
Subject: Re: HTTP Status 404 - /xmlui error
To: users-h...@tomcat.apache.org


Hi again!


On Fri, Oct 12, 2012 at 10:34 AM, sharika menon sharika.me...@tges.orgwrote:


Good Morning!

I had configured DSpace 1.8.2 version on windows 7. It was working fine
but now I am getting *HTTP Status 404* - /*xmlui* error. I am getting the
same error with *jspui*. Unfortunately, that 404 error message doesn't
provide enough information to help diagnose the problem.

I tried to start jspui/xmlui application from Tomcat Web Application
Manager but it still showing false running with a message below :-


*Message:*

FAIL - Application at context path /jspui could not be started


While finding the leaks it showing the below message :-

*Message:*

No web applications appear to have triggered a memory leak on stop, reload or 
undeploy.


If you could guide me for the same.

Thanks in Advance!

--
Happy Networking!!

Warm Regards,

Sharika Menon



*Be who you really are. – If you’re lucky enough to have something that
makes you different from everybody else, don’t change. Uniqueness is
priceless. In this crazy world that’s trying to make you like everyone
else, find the courage to keep being your awesome self. And when they laugh
at you for being different, laugh back at them for being the same. It takes
a lot of courage to stand alone, but it’s worth it. Being YOU is worth it!
*








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



Re: Fwd: HTTP Status 404 - /xmlui error

2012-10-12 Thread sharika menon
I am not getting DSpace web-page. I need to know what went wrong
with Apache tomcat. I need your guidance in resolving this issue.

Pls find the attached screenshot of the error generated.

On Fri, Oct 12, 2012 at 2:20 PM, André Warnier a...@ice-sa.com wrote:


 And the question is ? ...


 sharika menon wrote:

 -- Forwarded message --
 From: sharika menon sharika.me...@tges.org
 Date: Fri, Oct 12, 2012 at 10:47 AM
 Subject: Re: HTTP Status 404 - /xmlui error
 To: users-h...@tomcat.apache.org


 Hi again!


 On Fri, Oct 12, 2012 at 10:34 AM, sharika menon sharika.me...@tges.org
 wrote:

  Good Morning!

 I had configured DSpace 1.8.2 version on windows 7. It was working fine
 but now I am getting *HTTP Status 404* - /*xmlui* error. I am getting the
 same error with *jspui*. Unfortunately, that 404 error message doesn't

 provide enough information to help diagnose the problem.

 I tried to start jspui/xmlui application from Tomcat Web Application
 Manager but it still showing false running with a message below :-


 *Message:*


 FAIL - Application at context path /jspui could not be started


 While finding the leaks it showing the below message :-

 *Message:*


 No web applications appear to have triggered a memory leak on stop,
 reload or undeploy.


 If you could guide me for the same.

 Thanks in Advance!

 --
 Happy Networking!!

 Warm Regards,

 Sharika Menon



 *Be who you really are. – If you’re lucky enough to have something that

 makes you different from everybody else, don’t change. Uniqueness is
 priceless. In this crazy world that’s trying to make you like everyone
 else, find the courage to keep being your awesome self. And when they
 laugh
 at you for being different, laugh back at them for being the same. It
 takes
 a lot of courage to stand alone, but it’s worth it. Being YOU is worth
 it!
 *






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




-- 
Happy Networking!!

Warm Regards,

Sharika Menon



*Be who you really are. – If you’re lucky enough to have something that
makes you different from everybody else, don’t change. Uniqueness is
priceless. In this crazy world that’s trying to make you like everyone
else, find the courage to keep being your awesome self. And when they laugh
at you for being different, laugh back at them for being the same. It takes
a lot of courage to stand alone, but it’s worth it. Being YOU is worth it!*

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

Re: Fwd: HTTP Status 404 - /xmlui error

2012-10-12 Thread André Warnier

sharika menon wrote:
I am not getting DSpace web-page. 


Forgive my ignorance, but I have no idea what Dspace is.

From the limited information you provide, it seems to be a Java web application, which 
seems to normally respond to URLs like /xmlui and /jspui, and you seem to have had it 
running before under Tomcat (version ?) under Windows 7.


This list strips most attachments, so your screenshot is not available.

An HTTP error 404 means not found.

From the message (from a Tomcat logfile ?) which you provide, it would seem that Tomcat 
had some trouble deploying (starting) this application, which would explain the 404 error.


If you would like more specific help, you should supply more specific 
information.

For example, apart from the line
 FAIL - Application at context path /jspui could not be started
there should be more info in that logfile, no ?

Also, what did you do between the moment when it was running, and when it was not running 
anymore ?  Usually, Tomcat webapps do not start not working anymore by themselves.


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



Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-13 Thread Vishwanath Washimkar
Fawad,

I tried to reproduce the issue following the steps you had provided. Did
the same. Could not reproduce the issue. You definitely had done something
other which may have just deleted the manager app from webapps directory so
double check that.

I confirm that for the manager app to start or deploy you do not need the
tomcat-users.xml. So I am sure just renaming it did not cause tomcat to
give '404' error. 404 means either the webapplication has not been deployed
( for any exception occurring) OR its deleted. So for this do the following
:

i) check if tomcat-root/webapps directory and see if you have the manager
directory with all its content
ii) If Yes, Check the server.log and startup.log in the server log.

Anyway, I suggest you just install a fresh copy of the tomcat taking all
the backup of your existing webapplication if thats possible . For me it
seems the best solution.

Best of luck
Vishwanath

On Tue, Sep 11, 2012 at 10:45 PM, Pid * p...@pidster.com wrote:

 On 10 Sep 2012, at 07:53, Ch. Fawad Nazir fa...@biome.io wrote:

  Yes Tomcat run with Root.

 That's not usually a good thing.
 How are you starting Tomcat?


 p

  I made a copy of tomcat-users.xml to tomcat-users.xml-old before make any
  changes to original file. Did some changes in tomcat-users.xml ... and
 after
  that delete the tomcat-users.xml. And again rename the
 tomcat-users.xml-old
  to tomcat-users.xml again and restart the Tomcat.
 
 
 
  Ch. Fawad Nazir
 
  -Original Message-
  From: André Warnier [mailto:a...@ice-sa.com]
  Sent: Monday, September 10, 2012 11:40 AM
  To: Tomcat Users List
  Subject: Re: tomcat 7.0.27 HTTP Status 404 - /manager/status
 
 
 
  And does Tomcat run as user root ?
 
 
  I am going by your own explanation above.  It was working; you only did
  something to tomcat-users.xml, and it isn't working anymore.  Logically
  thus, it is something that you did to tomcat-users.xml that is the cause.
  Unless your explanation above is incomplete.
  It is strange that you would get a 404 not found status as a result of
  messing about with tomcat-users.xml, but hey that's what you're saying.
 
  -
  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
 

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




Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-11 Thread Pid *
On 10 Sep 2012, at 07:53, Ch. Fawad Nazir fa...@biome.io wrote:

 Yes Tomcat run with Root.

That's not usually a good thing.
How are you starting Tomcat?


p

 I made a copy of tomcat-users.xml to tomcat-users.xml-old before make any
 changes to original file. Did some changes in tomcat-users.xml ... and after
 that delete the tomcat-users.xml. And again rename the tomcat-users.xml-old
 to tomcat-users.xml again and restart the Tomcat.



 Ch. Fawad Nazir

 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com]
 Sent: Monday, September 10, 2012 11:40 AM
 To: Tomcat Users List
 Subject: Re: tomcat 7.0.27 HTTP Status 404 - /manager/status



 And does Tomcat run as user root ?


 I am going by your own explanation above.  It was working; you only did
 something to tomcat-users.xml, and it isn't working anymore.  Logically
 thus, it is something that you did to tomcat-users.xml that is the cause.
 Unless your explanation above is incomplete.
 It is strange that you would get a 404 not found status as a result of
 messing about with tomcat-users.xml, but hey that's what you're saying.

 -
 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


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



Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-10 Thread André Warnier

Please do not top-post.

Ch. Fawad Nazir wrote:



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, September 10, 2012 12:09 AM

To: Tomcat Users List
Subject: Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

Ch. Fawad Nazir wrote:

Hi

I have installed tomcat 7.0.27 on CentOS. When access http://IP:8080 
it works fine. When click on any option Server Status , Manager Apps, 
Host Manger it shows  HTTP Status 404 - /manager/status.


IT was working fine, I want To make changes in tomcat-users.xml,  So I 
make backup of this file tomcat-users.xml-old. I did some changes in 
tomcat-users.xml and after that I delete the tomcat-users.xml file and 
rename the tomcat-users.xml-old to tomcat-users.xml. After that it 
stop working and give error tomcat 7.0.27 HTTP Status 404 -

/manager/status.

Need help to resolve this issue.



Owner/Permissions of tomcat-users.xml ?

It is same as it was when it was working.
-rw--- 1 root root   1625 Sep  8 04:45 tomcat-users.xml



And does Tomcat run as user root ?


I am going by your own explanation above.  It was working; you only did something to 
tomcat-users.xml, and it isn't working anymore.  Logically thus, it is something that you 
did to tomcat-users.xml that is the cause.  Unless your explanation above is incomplete.
It is strange that you would get a 404 not found status as a result of messing about 
with tomcat-users.xml, but hey that's what you're saying.


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



RE: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-10 Thread Ch. Fawad Nazir
Yes Tomcat run with Root.
I made a copy of tomcat-users.xml to tomcat-users.xml-old before make any
changes to original file. Did some changes in tomcat-users.xml ... and after
that delete the tomcat-users.xml. And again rename the tomcat-users.xml-old
to tomcat-users.xml again and restart the Tomcat.



Ch. Fawad Nazir

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, September 10, 2012 11:40 AM
To: Tomcat Users List
Subject: Re: tomcat 7.0.27 HTTP Status 404 - /manager/status



And does Tomcat run as user root ?


I am going by your own explanation above.  It was working; you only did
something to tomcat-users.xml, and it isn't working anymore.  Logically
thus, it is something that you did to tomcat-users.xml that is the cause.
Unless your explanation above is incomplete.
It is strange that you would get a 404 not found status as a result of
messing about with tomcat-users.xml, but hey that's what you're saying.

-
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: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-10 Thread André Warnier

Ch. Fawad Nazir wrote:

Yes Tomcat run with Root.
I made a copy of tomcat-users.xml to tomcat-users.xml-old before make any
changes to original file. Did some changes in tomcat-users.xml ... and after
that delete the tomcat-users.xml. And again rename the tomcat-users.xml-old
to tomcat-users.xml again and restart the Tomcat.



You are repeating yourself, without providing any additional information that would allow 
anyone to help you.
If you had done exactly what you write above - and nothing else - and if Tomcat was 
working before, then it should be working afterward also.

Or else, you also did something else which you are not telling us.

Further tip : look at the Tomcat logfiles, to see if any error message appears 
there.

And, are you sure that before the changes, you could actually access 
/manager/status ?
Or did you just try this for the first time after your changes ?
In other words, is the manager application really installed ?


Please reply *below* the previous message, not on top of the email.

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



tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-09 Thread Ch. Fawad Nazir
Hi

I have installed tomcat 7.0.27 on CentOS. When access http://IP:8080 it
works fine. When click on any option Server Status , Manager Apps, Host
Manger it shows  HTTP Status 404 - /manager/status.

IT was working fine, I want To make changes in tomcat-users.xml,  So I make
backup of this file tomcat-users.xml-old. I did some changes in
tomcat-users.xml and after that I delete the tomcat-users.xml file and
rename the tomcat-users.xml-old to tomcat-users.xml. After that it stop
working and give error tomcat 7.0.27 HTTP Status 404 - /manager/status.

Need help to resolve this issue.

 

 

 

 

 

Ch. Fawad Nazir

Email: fa...@biome.io

+92-321-5167532

Skype: fawad1n

 

Disclaimer:

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed.
If you have received this email in error please notify the system manager.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused
by any virus transmitted by this email

 



Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-09 Thread André Warnier

Ch. Fawad Nazir wrote:

Hi

I have installed tomcat 7.0.27 on CentOS. When access http://IP:8080 it
works fine. When click on any option Server Status , Manager Apps, Host
Manger it shows  HTTP Status 404 - /manager/status.

IT was working fine, I want To make changes in tomcat-users.xml,  So I make
backup of this file tomcat-users.xml-old. I did some changes in
tomcat-users.xml and after that I delete the tomcat-users.xml file and
rename the tomcat-users.xml-old to tomcat-users.xml. After that it stop
working and give error tomcat 7.0.27 HTTP Status 404 - /manager/status.

Need help to resolve this issue.



Owner/Permissions of tomcat-users.xml ?

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



RE: tomcat 7.0.27 HTTP Status 404 - /manager/status

2012-09-09 Thread Ch. Fawad Nazir
It is same as it was when it was working.
-rw--- 1 root root   1625 Sep  8 04:45 tomcat-users.xml



Ch. Fawad Nazir
Email: fa...@biome.io
+92-321-5167532
Skype: fawad1n

Disclaimer:
“This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed.
If you have received this email in error please notify the system manager.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused
by any virus transmitted by this email

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, September 10, 2012 12:09 AM
To: Tomcat Users List
Subject: Re: tomcat 7.0.27 HTTP Status 404 - /manager/status

Ch. Fawad Nazir wrote:
 Hi
 
 I have installed tomcat 7.0.27 on CentOS. When access http://IP:8080 
 it works fine. When click on any option Server Status , Manager Apps, 
 Host Manger it shows  HTTP Status 404 - /manager/status.
 
 IT was working fine, I want To make changes in tomcat-users.xml,  So I 
 make backup of this file tomcat-users.xml-old. I did some changes in 
 tomcat-users.xml and after that I delete the tomcat-users.xml file and 
 rename the tomcat-users.xml-old to tomcat-users.xml. After that it 
 stop working and give error tomcat 7.0.27 HTTP Status 404 -
/manager/status.
 
 Need help to resolve this issue.
 

Owner/Permissions of tomcat-users.xml ?

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


http status 404 error

2012-05-11 Thread Irene Amatulli
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.

Irene

HTTP Status 404 -

type Status report
message
description The requested resource () is not available.

Apache Tomcat/6.0.20



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



HTTP Status 404 - /manager/html

2011-11-07 Thread Kaushal Shriyan
Hi,

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

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



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

2011-01-19 Thread Amol Puglia
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.

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

JAVA Version is 1.4.2_02

body { margin: 0pt; padding: 0pt; }td, div { font-family: Tahoma; font-size: 
8pt; vertical-align: top; }body { margin: 0pt; padding: 0pt; }.transcript { 
background-color: rgb(210, 210, 210); }.messageBlock { margin-left: 4px; 
margin-bottom: 3px; }.message { margin-left: 100px; word-wrap: break-word; 
}.messageCont { margin-left: 100px; word-wrap: break-word; }.other { color: 
rgb(57, 87, 122); vertical-align: top; font-weight: bold; font-style: normal; 
float: left; width: 95px; }.myself { color: rgb(218, 129, 3); font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont { font-size: 
8px; text-align: right; color: rgb(57, 87, 122); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.myselfCont { font-size: 8px; text-align: right; color: 
rgb(218, 129, 3); font-family: Arial,Lucida Grande; font-style: normal; 
vertical-align: top; font-weight: bold; float: left; width:
 95px; }.system { margin-left: 4px; word-wrap: break-word; color: rgb(218, 129, 
3); font-style: normal; font-weight: normal; }.showTimestamp { margin-right: 
3px; float: right; color: rgb(153, 153, 153); font-style: normal; font-weight: 
normal; }.other1 { color: rgb(172, 32, 0); vertical-align: top; font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont1 { font-size: 
8px; text-align: right; color: rgb(172, 32, 0); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.other2 { color: rgb(60, 159, 168); vertical-align: top; 
font-weight: bold; font-style: normal; float: left; width: 95px; }.otherCont2 { 
font-size: 8px; text-align: right; color: rgb(60, 159, 168); font-family: 
Arial,Lucida Grande; font-style: normal; vertical-align: top; font-weight: 
bold; float: left; width: 95px; }.other3 { color: rgb(226, 86, 20); 
vertical-align: top; font-weight: bold; font-style:
 normal; float: left; width: 95px; }.otherCont3 { font-size: 8px; text-align: 
right; color: rgb(226, 86, 20); font-family: Arial,Lucida Grande; font-style: 
normal; vertical-align: top; font-weight: bold; float: left; width: 95px; 
}.other4 { color: rgb(11, 106, 200); vertical-align: top; font-weight: bold; 
font-style: normal; float: left; width: 95px; }.otherCont4 { font-size: 8px; 
text-align: right; color: rgb(11, 106, 200); font-family: Arial,Lucida Grande; 
font-style: normal; vertical-align: top; font-weight: bold; float: left; width: 
95px; }.other5 { color: rgb(178, 50, 144); vertical-align: top; font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont5 { font-size: 
8px; text-align: right; color: rgb(178, 50, 144); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.other6 { color: rgb(2, 231, 199); vertical-align: top; 
font-weight: bold; font-style: normal;
 float: left; width: 95px; }.otherCont6 { font-size: 8px; text-align: right; 
color: rgb(2, 231, 199); font-family: Arial,Lucida Grande; font-style: normal; 
vertical-align: top; font-weight: bold; float: left; width: 95px; }.other7 { 
color: rgb(91, 50, 132); vertical-align: top; font-weight: bold; font-style: 
normal; float: left; width: 95px; }.otherCont7 { font-size: 8px; text-align: 
right; color: rgb(91, 50, 132); font-family: Arial,Lucida Grande; font-style: 
normal; vertical-align: top; font-weight: bold; float: left; width: 95px; 
}.tsDisplay { display: block; }



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





type Status report


message /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


description The requested resource 
(/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet) is not 
available.







Apache Tomcat/5.5.9 




  

HTTP Status 404 - Servlet jsp is not available

2010-12-13 Thread Gaurav Pruthi

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)


=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




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

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

HTTP status 404

2010-12-08 Thread Lava Saleem
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 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

HTTP status 404 - only first time when accessing from browser

2010-02-09 Thread lazyisgood

I am experiencing strange issue with Tomcat 6.0.24. I have jsp/jsf
application deployed to Tomcat. The first time the app is accessed, the URL
gets messed up and I get HTTP 404. The second I the same app is accessed in
the same browser, it loads fine. If you close and browser and repeat it
again, the urls gets messed up again.
This problem can be seen live here:

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

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.

I previously deployed this app to Weblogic server, and did not see this
problem. It started appearing once I migrated to Tomcat.



-- 
View this message in context: 
http://old.nabble.com/HTTP-status-404---only-first-time-when-accessing-from-browser-tp27521403p27521403.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



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: FW: HTTP Status 404 and SEVERE: Error deploying configuration descriptor balancer.xml

2009-10-02 Thread Mark Thomas
jay wrote:
 Hi all 
 
 I have install and start tomcat5.5, and in my tomcat5.5/webapps have a
 symlink to my page as follows :

That isn't a standard ASF distribution. You need to talk to whichever
organisation provided that package since it looks like it is broken.

Alternatively, download a standard ASF distribution.

Mark




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



FW: HTTP Status 404 and SEVERE: Error deploying configuration descriptor balancer.xml

2009-10-01 Thread jay
 

Hi all 

 

I have install and start tomcat5.5, and in my tomcat5.5/webapps have a
symlink to my page as follows :

j...@ibm:~$ ls -l  /var/lib/tomcat5.5/webapps/

lrwxrwxrwx 1 root root   42 2009-10-01 22:57 mysite -
/usr/lib/school/services/ mysite

But  when I input http://localhost:8180 / mysite /  to browser,it's show the
error msg as follow:

HTTP Status 404 - 

  _  

type Status report

message 

description The requested resource () is not available.

  _  

Apache Tomcat/5.5

Then I check the log in /var/log/tomcat5.5/ catalina.2009-10-01.log , I find
the error msg as follows :

 

 

 

Oct 1, 2009 11:19:24 PM org.apache.catalina.startup.HostConfig
deployDescriptor

SEVERE: Error deploying configuration descriptor balancer.xml

java.io.FileNotFoundException:
/etc/tomcat5.5/Catalina/localhost/balancer.xml (No such file or directory)

 at java.io.FileInputStream.open(Native Method)

 at java.io.FileInputStream.init(FileInputStream.java:106)

 at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1544)

 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)

 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)

 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

 at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1306)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1570)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1579)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1559)

   at java.lang.Thread.run(Thread.java:619)

 

 

 

Is it cause that I can't see the webadmin page ?

 

 

 

Any ideas?



Cheers,

jay

 

 

 



error with tomcat HTTP Status 404 The requested resource() is not available

2009-03-23 Thread Tomas Rodriguez
Ok thanks a lot Charles, jus I followed your advise, I created all 
directory(WEB-INF
/lib, web-inf/classes) under my folder d:/examplestomcat, and I created too 
the file tomas.xml at the directory 
c:\tomcay6.0\conf\Catalina\localhost\tomas.xml
with the Context docBase=d:/examplestomcat, I executed the IE and the 
via URL I wrote http://127.0.0.1:8080/tomas, but at the end I can see 
anything, just show me an error.


the error is:

HTTP Status 404 - /tomas/



type Status report

message /tomas/

description The requested resource (/tomas/) is not available.




Apache Tomcat/6.0.18
--


I reboot the tomcat services, but I can't get any good result, well I don't 
know what should I do with the web.xml. I just copied the orginal web.xml 
from tomcat directory to d:/examplestomcat/web.xml, I didn't change anything 
in this file.
and I copied as well the mysql/J connect from tomcat/lib to my 
d:/examplestomcat/WEB-INF\lib

I sorry for bother you, but I need to finish with this configuration.
thanks so much
have a great day
sincerely
TOMAS


From: Caldarale, Charles R chuck.caldar...@unisys.com
Sent: Saturday, March 21, 2009 5:49 PM
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: mysql + tomcat work already but I need to reconfigurate the 
tomcat for load the examples in other location of the hard driver



From: Tomas Rodriguez [mailto:admhards...@yahoo.ca]
Subject: Re: mysql + tomcat work already but I need to
reconfigurate the tomcat for load the examples in other
location of the hard driver

please tell me how can I create the server.xml and
build.xml


You're on your own for the build.xml; setting that up depends entirely on 
the organization of your source files.



I will need to create a file named
conf/Catalina/[host]/[appName].xml containing a
Context element with a docBase attribute whose
value is the absolute location of the webapp.


Correct.  Unless you are supporting multiple web sites, the existing 
Host will do; you don't have to create another one, so you shouldn't 
have to add anything to server.xml.  You appear to have decided to place 
your own examples in the D:\examplestomcat directory, so that's what your 
docBase attribute will point to.  The only missing piece of information is 
the URL name used to access your webapp; for brevity, we'll use the name 
tomas, but you're of course free to use anything you want.


1) no changes are needed to server.xml

2) create the file C:\tomcat6.0\conf\Catalina\localhost\tomas.xml

3) the contents of the above file are just:
Context docBase=D:/examplestomcat /

4) under D:\examplestomcat, you should have:
WEB-INF\web.xml - contains your servlet mappings
WEB-INF\lib - contains jar files (if any) for your webapp
WEB-INF\classes - contains individual class files (if any) for your webapp
index.html - the home page of your webapp.

You would access the above via the URL http://127.0.0.1:8080/tomas, 
assuming your browser is on the same machine that Tomcat is running on and 
you're using the default server.xml.


You can, of course, vary #4 considerably to meet your needs, as long as 
you stick with the structure required by the servlet spec.


- 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



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



RE: error with tomcat HTTP Status 404 The requested resource() is not available

2009-03-23 Thread Caldarale, Charles R
 From: Tomas Rodriguez [mailto:admhards...@yahoo.ca] 
 Subject: error with tomcat HTTP Status 404 The requested 
 resource() is not available
 
 c:\tomcay6.0\conf\Catalina\localhost\tomas.xml

I hope that was tomcat6.0, not tomcay6.0.

 Context docBase=d:/examplestomcat

You're missing the closing slash; the above should be:
Context docBase=d:/examplestomcat/

 I wrote http://127.0.0.1:8080/tomas, but at the end I can see 
 anything, just show me an error.
 
 the error is:
 
 HTTP Status 404 - /tomas/

Did you put a welcome file in D:\examplestomcat?  If not, you should get a 404.

 The requested resource (/tomas/) is not available.

What's in the Tomcat logs?  Did you get any errors trying to deploy the webapp?

 I don't know what should I do with the web.xml.

Read the servlet spec, and build a web.xml appropriate for your webapp.

 I just copied the orginal web.xml from tomcat directory 

What Tomcat directory?  There are numerous web.xml files distributed with 
Tomcat.  Regardless, copying any existing web.xml is almost always wrong.

 to d:/examplestomcat/web.xml

That's not where web.xml belongs, even if you had an appropriate one.  Read the 
servlet spec.  Also read this:
http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.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



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

2009-02-05 Thread geethkp
Dear all,
 Good afternoon.
I need a help.
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



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



HTTP status 404 - Context config

2009-01-26 Thread Stephen Vaughan
Hi,

I'm having trouble setting up a context with jdbc.postgresql (noob). As far
as I know the context is fine, but when I have it enabled all pages are
returning HTTP Status 404 - *The requested resource () is not available.

*My context:

Context path=/path
   docBase=path
   debug=5
   reloadable=true
   crossContext=true

   Resource   name=jdbc/path
auth=Container
type=javax.sql.DataSource
maxActive=100
maxIdle=10
maxWait=1
username=user
password=password
driverClassName=org.postgresql.Driver
url=jdbc:postgresql://
123.123.123.123:5432/databasePRODUCTION/
/Context

I have placed postgresql-8.3-604.jdbc4.jar in $tomcat/lib/. Tried setting up
log4j to help better diagnose the problem, but it's not producing anything
useful in the logs. I'm using the log4j example from this page:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Please help!

-- 
Best Regards,
Stephen


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



HTTP Status 404

2008-12-27 Thread satya mahapatra

Hi,

I have created sample web application using MyEclipse6.5. There is just one
welcome page is there. When I am giving the Context path I am expecting the
welcome page should be displayed. The entry in the web.xml file is as
follows.

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list


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

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.

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

Thanks,
Satya
-- 
View this message in context: 
http://www.nabble.com/HTTP-Status-404-tp21184492p21184492.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



HTTP Status 404 with Apache Tomcat/5.5

2008-12-14 Thread hsuan
 

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!

 



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: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-14 Thread uddav

Thank you both for those information, they were very helpful. Again, thank
you so much. =)



Caldarale, Charles R wrote:
 
 From: uddav [mailto:[EMAIL PROTECTED]
 Subject: Creating virtual directory in Tomcat - HTTP Status 404 ...

 docBase=/dirtest/prod_scrpts
 URL http://servername:8080/test i get the error:
 HTTP Status 404 - /test/
 
 Unless you have a welcome file (e.g., index.html) in /dirtest/prod_scrpts,
 that's exactly the error you should get.  If you want Tomcat to display
 directory listings when no welcome files are present, you'll have to
 enable that for the DefaultServlet in conf/web.xml (or the webapp's
 WEB-INF/web.xml file).
 
 Apache Tomcat/5.0.27
 
 Note that 5.0 is no longer supported.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Creating-virtual-directory-in-Tomcat---HTTP-Status-404-...-tp19887681p19976883.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread uddav

hello everyone,

i am a novice in this field. I was trying to create a virtual directory
(alias directory) in Tomcat in Solaris box. Following is what i did.

1. stopped tomcat 

2. located the server.xml file under INSTALL DIR/tomcat/conf 

2. edited it to add 
   Context path=/test
docBase=/dirtest/prod_scrpts
debug=1
reloadable=true 
/Context

3. added the above between the host tags such that
 Host appBase=webapps autoDeploy...
 ... ... ... ...
  Context path=/test
docBase=/dirtest/prod_scrpts
debug=1
reloadable=true 
/Context
 /Host 

4. started tomcat 

Now when i try to access the newly create virtual directory by going to the
URL http://servername:8080/test i get the error:

HTTP Status 404 - /test/

type Status report
message /test/
description The requested resource (/test/) is not available.

Apache Tomcat/5.0.27

Any suggestions and recommendation will be greatly appreciated.

Thankyou
uddav 

-- 
View this message in context: 
http://www.nabble.com/Creating-virtual-directory-in-Tomcat---HTTP-Status-404-...-tp19887681p19887681.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread Scott Dunbar
What is in the directory /dirtest/prod_scrpts?  If it doesn't have a 
file named index.jsp, index.html or index.htm (defaults set in 
conf/web.xml) then it will give a 404.  Try a very small hello world 
html page for one of those files.  The default is to disable file 
listings for directories which is where the 404 is coming from.




uddav wrote:

hello everyone,

i am a novice in this field. I was trying to create a virtual directory
(alias directory) in Tomcat in Solaris box. Following is what i did.

1. stopped tomcat 

2. located the server.xml file under INSTALL DIR/tomcat/conf 

2. edited it to add 
   Context path=/test

docBase=/dirtest/prod_scrpts
debug=1
reloadable=true 
/Context

3. added the above between the host tags such that
 Host appBase=webapps autoDeploy...
 ... ... ... ...
  Context path=/test
docBase=/dirtest/prod_scrpts
debug=1
reloadable=true 
/Context
 /Host 

4. started tomcat 


Now when i try to access the newly create virtual directory by going to the
URL http://servername:8080/test i get the error:

HTTP Status 404 - /test/

type Status report
message /test/
description The requested resource (/test/) is not available.

Apache Tomcat/5.0.27

Any suggestions and recommendation will be greatly appreciated.

Thankyou
uddav 

  



-
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: Creating virtual directory in Tomcat - HTTP Status 404 ...

2008-10-08 Thread Caldarale, Charles R
 From: uddav [mailto:[EMAIL PROTECTED]
 Subject: Creating virtual directory in Tomcat - HTTP Status 404 ...

 docBase=/dirtest/prod_scrpts
 URL http://servername:8080/test i get the error:
 HTTP Status 404 - /test/

Unless you have a welcome file (e.g., index.html) in /dirtest/prod_scrpts, 
that's exactly the error you should get.  If you want Tomcat to display 
directory listings when no welcome files are present, you'll have to enable 
that for the DefaultServlet in conf/web.xml (or the webapp's WEB-INF/web.xml 
file).

 Apache Tomcat/5.0.27

Note that 5.0 is no longer supported.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >