You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Hoffer <dh...@gmail.com> on 2011/12/27 16:42:54 UTC

404 Errors for all apps in Tomcat 7.0.23

I just installed Tomcat 7.0.23 using Windows 64 bit installer and
deployed a couple apps via the manager application, however when I run
them I get HTTP Status 404 errors.  However I see that I get the same
error for the standard default apps, docs, examples, etc.  The only
URL that works is http://IP:8080/manager/html.

In the log I see:
Dec 27, 2011 3:28:29 PM org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[errorCode=404,
location=/WEB-INF/jsp/404.jsp]
java.lang.NullPointerException
	at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:455)
	at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:324)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

What do I have to do to enable the apps?

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by David Hoffer <dh...@gmail.com>.
Localhost.log:
Dec 28, 2011 2:19:18 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 28, 2011 2:19:18 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

localhost_access.log is empty at startup until I click on one of the
apps in the manager page, then it has:
172.31.255.154 - admin [28/Dec/2011:02:37:27 +0000] "GET /manager/html
HTTP/1.1" 200 15821
172.31.255.154 - - [28/Dec/2011:02:37:27 +0000] "GET
/manager/images/asf-logo.gif HTTP/1.1" 404 952
172.31.255.154 - - [28/Dec/2011:02:37:27 +0000] "GET
/manager/images/tomcat.gif HTTP/1.1" 404 952
172.31.255.154 - - [28/Dec/2011:02:37:27 +0000] "GET /favicon.ico
HTTP/1.1" 404 952
172.31.255.154 - - [28/Dec/2011:02:37:31 +0000] "GET /docs HTTP/1.1" 302 -
172.31.255.154 - - [28/Dec/2011:02:37:31 +0000] "GET /docs/ HTTP/1.1" 404 952
172.31.255.154 - - [28/Dec/2011:02:37:31 +0000] "GET /favicon.ico
HTTP/1.1" 404 952


I don't know why the one log references Java in the Windows
folder...that folder does not exist.  I have added Java to the system
path (it wasn't there before) so now that log file has this line:
INFO: 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 (x86)\Apache Software
Foundation\Tomcat
7.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Java\jre6\bin;.

My Java version is 1.6.0_30

I did stop Tomcat and was able to manually delete the logs and work
folders and then I restarted.  Windows lets me delete these files but
does prompt me asking that I will need to be an administrator which it
allows me to do.  Tomcat is running as a service, could it be that it
doesn't have enough rights to do something?  It is creating contents
in both the log and work folders...

This is running on OS - Windows 7 64bit Enterprise VM.

Thanks,
-Dave


On Tue, Dec 27, 2011 at 5:43 PM, Konstantin Kolinko
<kn...@gmail.com> wrote:
> 2011/12/28 David Hoffer <dh...@gmail.com>:
>> Yes that was a full log of that file.
>>
>> The only change I made was in the Manager App's config I increased the
>> size of the max file size because one of my apps is bigger than 50MB,
>> so I just made a change to the web.xml in the manager app.
>>
>> The http://IP:8080/manger/html page shows the correct list of apps but
>> if you click on any of the applications (path) I get the 404
>> error...and I have undeployed all my apps so the problem exists with
>> the standard sample apps too.
>>
>
> You cited only one of log files. What is in other log files? What is
> in localhost*.log? What is in access log?
>
> Try to stop Tomcat and delete everything from the work directory. (I
> wonder whether *.class files for the JSPs are there. That is, whether
> the directory is writable.)
>
> The same with logs directory. Clear it, move old logs somewhere.
>
> What Java version are you using? (It is a bit odd that the path shown
> in the log is "C:\Windows\Sun\Java\bin").
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/12/28 David Hoffer <dh...@gmail.com>:
> Yes that was a full log of that file.
>
> The only change I made was in the Manager App's config I increased the
> size of the max file size because one of my apps is bigger than 50MB,
> so I just made a change to the web.xml in the manager app.
>
> The http://IP:8080/manger/html page shows the correct list of apps but
> if you click on any of the applications (path) I get the 404
> error...and I have undeployed all my apps so the problem exists with
> the standard sample apps too.
>

You cited only one of log files. What is in other log files? What is
in localhost*.log? What is in access log?

Try to stop Tomcat and delete everything from the work directory. (I
wonder whether *.class files for the JSPs are there. That is, whether
the directory is writable.)

The same with logs directory. Clear it, move old logs somewhere.

What Java version are you using? (It is a bit odd that the path shown
in the log is "C:\Windows\Sun\Java\bin").

Best regards,
Konstantin Kolinko

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by David Hoffer <dh...@gmail.com>.
Yes that was a full log of that file.

The only change I made was in the Manager App's config I increased the
size of the max file size because one of my apps is bigger than 50MB,
so I just made a change to the web.xml in the manager app.

The http://IP:8080/manger/html page shows the correct list of apps but
if you click on any of the applications (path) I get the 404
error...and I have undeployed all my apps so the problem exists with
the standard sample apps too.

Should I try a different Tomcat version?

-Dave

On Tue, Dec 27, 2011 at 3:33 PM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David,
>
> On 12/27/11 10:42 AM, David Hoffer wrote:
>> I just installed Tomcat 7.0.23 using Windows 64 bit installer and
>> deployed a couple apps via the manager application, however when I
>> run them I get HTTP Status 404 errors.  However I see that I get
>> the same error for the standard default apps, docs, examples, etc.
>> The only URL that works is http://IP:8080/manager/html.
>>
>> In the log I see: Dec 27, 2011 3:28:29 PM
>> org.apache.catalina.core.StandardHostValve custom SEVERE: Exception
>> Processing ErrorPage[errorCode=404, location=/WEB-INF/jsp/404.jsp]
>> java.lang.NullPointerException at
>> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:455)
>
> Is
>>
> that stack trace complete? It seems to indicate that
> /WEB-INF/jsp/404.jsp is being invoked, but that JSP isn't actually
> executing. The only thing I can think of is that the JSP can't be
> found while processing an error (404?) and do you get this error as well.
>
> Have you made any modifications to Tomcat other than enabling the
> manager webapp and deploying some webapps onto it?
>
>> What do I have to do to enable the apps?
>
> Deployment ought to "enable" the apps. What does the manager show in
> the list of deployed webapps?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk76R7QACgkQ9CaO5/Lv0PBjiQCgjCT7wt2tDxFEbJr0bgXTLRvu
> zHkAnRMrr52g8R+Ggu3MAljah1i4dooK
> =BW8D
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

On 12/27/11 10:42 AM, David Hoffer wrote:
> I just installed Tomcat 7.0.23 using Windows 64 bit installer and 
> deployed a couple apps via the manager application, however when I
> run them I get HTTP Status 404 errors.  However I see that I get
> the same error for the standard default apps, docs, examples, etc.
> The only URL that works is http://IP:8080/manager/html.
> 
> In the log I see: Dec 27, 2011 3:28:29 PM
> org.apache.catalina.core.StandardHostValve custom SEVERE: Exception
> Processing ErrorPage[errorCode=404, location=/WEB-INF/jsp/404.jsp] 
> java.lang.NullPointerException at
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:455)

Is
> 
that stack trace complete? It seems to indicate that
/WEB-INF/jsp/404.jsp is being invoked, but that JSP isn't actually
executing. The only thing I can think of is that the JSP can't be
found while processing an error (404?) and do you get this error as well.

Have you made any modifications to Tomcat other than enabling the
manager webapp and deploying some webapps onto it?

> What do I have to do to enable the apps?

Deployment ought to "enable" the apps. What does the manager show in
the list of deployed webapps?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk76R7QACgkQ9CaO5/Lv0PBjiQCgjCT7wt2tDxFEbJr0bgXTLRvu
zHkAnRMrr52g8R+Ggu3MAljah1i4dooK
=BW8D
-----END PGP SIGNATURE-----

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by David Hoffer <dh...@gmail.com>.
No errors are reported at start up, here is the catalina log.

2011-12-27 17:57:07 Commons Daemon procrun stderr initialized
Dec 27, 2011 5:57:08 PM org.apache.catalina.core.AprLifecycleListener init
INFO: 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 (x86)\Apache Software
Foundation\Tomcat
7.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;;.
Dec 27, 2011 5:57:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 27, 2011 5:57:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 426 ms
Dec 27, 2011 5:57:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 27, 2011 5:57:08 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\Apache Software Foundation\Tomcat 7.0\webapps\docs
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.ContextConfig
getDefaultWebXmlFragment
INFO: No global web.xml found
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\Apache Software Foundation\Tomcat 7.0\webapps\examples
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\Apache Software Foundation\Tomcat 7.0\webapps\host-manager
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\Apache Software Foundation\Tomcat 7.0\webapps\manager
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
Dec 27, 2011 5:57:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Dec 27, 2011 5:57:08 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 27, 2011 5:57:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 416 ms

-Dave



On Tue, Dec 27, 2011 at 10:29 AM, Pid * <pi...@pidster.com> wrote:
> On 27 Dec 2011, at 15:43, David Hoffer <dh...@gmail.com> wrote:
>
>> I just installed Tomcat 7.0.23 using Windows 64 bit installer and
>> deployed a couple apps via the manager application, however when I run
>> them I get HTTP Status 404 errors.  However I see that I get the same
>> error for the standard default apps, docs, examples, etc.  The only
>> URL that works is http://IP:8080/manager/html.
>>
>> In the log I see:
>> Dec 27, 2011 3:28:29 PM org.apache.catalina.core.StandardHostValve custom
>> SEVERE: Exception Processing ErrorPage[errorCode=404,
>> location=/WEB-INF/jsp/404.jsp]
>> java.lang.NullPointerException
>
> What about before that during startup?
>
>
> p
>
>
>
>>    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:455)
>>    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:324)
>>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
>>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
>>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
>>    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
>>    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>    at java.lang.Thread.run(Unknown Source)
>>
>> What do I have to do to enable the apps?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Re: 404 Errors for all apps in Tomcat 7.0.23

Posted by Pid * <pi...@pidster.com>.
On 27 Dec 2011, at 15:43, David Hoffer <dh...@gmail.com> wrote:

> I just installed Tomcat 7.0.23 using Windows 64 bit installer and
> deployed a couple apps via the manager application, however when I run
> them I get HTTP Status 404 errors.  However I see that I get the same
> error for the standard default apps, docs, examples, etc.  The only
> URL that works is http://IP:8080/manager/html.
>
> In the log I see:
> Dec 27, 2011 3:28:29 PM org.apache.catalina.core.StandardHostValve custom
> SEVERE: Exception Processing ErrorPage[errorCode=404,
> location=/WEB-INF/jsp/404.jsp]
> java.lang.NullPointerException

What about before that during startup?


p



>    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:455)
>    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:324)
>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
>    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
>    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>    at java.lang.Thread.run(Unknown Source)
>
> What do I have to do to enable the apps?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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