RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-22 Thread Rahul Kumar Singh
Dear Christopher,

The solution is fine, but first thing we need to identify the root cause.
If it is the problem of "loading a JSP-based class file." Why it is happened in 
production environment?
Any solid reason ?

Regads,
Rahul Kumar Singh



-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, July 22, 2015 7:21 PM
To: Tomcat Users List
Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Rahul,

On 7/21/15 11:02 PM, Rahul Kumar Singh wrote:
> Dear Christopher,
>> Any quotas on the filesystem?
> No.
>> Any idea which class it's having trouble loading?
> 
> I have no idea on this but I have got the below exception:
> 
> ==

>
> 
2015-07-17 09:53:50,860  javax.servlet.ServletException:
> java.lang.ClassFormatError: Truncated class file at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
cationFilterChain.java:303)
>
> 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:208)
> 

Well,
> 
it looks like you are having a problem loading a JSP-based class file. You 
could write a script to try to load each JSP .class file to see which one is 
broken. Something like this:

$ for class in $(find . -name "*.class") ; \
  do \
echo $class \
javap -classpath [classpath] $(sed -e 's/\.class//' ) \
  done

> For more reference there is some logs from Catalina.out after tomcat 
> startup.
> 
> Jul 17, 2015 11:58:33 AM
> org.apache.jasper.compiler.TldLocationsCache tldScanJar INFO: At least 
> one JAR was scanned for TLDs yet contained no TLDs. Enable debug 
> logging for this logger for a complete list of JARs that were scanned 
> but no TLDs were found in them. Skipping unneeded JARs during scanning 
> can improve startup time and JSP compilation time.

This is unrelated to your real problem.

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

iQIcBAEBCAAGBQJVr5+oAAoJEBzwKT+lPKRY54YQAJWJpc9wtHX5jZQS2eX0EqDD
nPvlA9P7w3Oc27w8cTMDdLCXFT60ZqnNFjO3h3UHspJ0B6vBhn1xBUTePRzlnFPn
0qdcTVuTgyAfQzBPh1luqXaEFMi815OV+ptzte8PQtkfcZbwzuAmbt//i4SJdWPt
2ES2FMQlaydv+LpQwUst11eXJtvsLXixKBWlD3BkplZ1tWkHl0xsWHlV7E8qupAG
LslCIV8hVLxYH1rOHbvirtmxDVpaqWGVEbFKq5oT/nBwDRmZWhyB+YcjOluY1KBl
1OtbhEAOuBjYMrtiYvc+gT2FcGk73U0V/diL5niq5LhzsoSwvthRTSp/abSZlzhd
PF5RjtyS5AygdwqJMkYFeIcl3Di3/eFQhq/FQobdcuOXO+QcL4TMUTjrFc80rlE6
hIaQM0XgJbr7aIzLBDsY0WvksGnROwPt6PAlWBisSN9GAD/P2oqUNSzkQmH7UvPp
gF2pGhLZvamNsWqcq+XUfrE2OwGrUsGfHmlxwdXg6ZbWpZ900rVJmLOSfg3xLW8x
lYTKNofdofrZBX93ahp4/xK/UjmBH/ORP7JzXIuirhct3DvDnACPt0JC+WrVKWee
N6aWxKJIIao5YIcT6h3wKY5Oo8Buakteds0xGmTbhzeAdc3oRxyqYQ/jyiRfjsNL
issppLvjG+tCLBboK+3+
=a0Du
-END PGP SIGNATURE-

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




DISCLAIMER:
---
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only. 
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the
opinions of NEC or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. .
---

Re: [OT] Re: SSL configuration using PFX as keystore

2015-07-22 Thread André Warnier

Mark Thomas wrote:

On 08/07/2015 16:22, André Warnier wrote:




With respect, you both don't get it.  MS support is deliberately
pitiful, to emphasize the fact that MS software is by definition
bug-free and does not really need support.


I've had several extremely frustrating telephone calls this afternoon
where various levels of Microsoft staff repeating their position that
the WebDAV client is "working as designed" and that prompting for
authentication is a perfectly reasonable response when trying to connect
to a server that does not require authentication but does have a cert
issued by a CA the client doesn't trust.

So far the minor security vulnerability (details to follow once
Microsoft provide their final response in writing) is "working as
designed" as well. Hmm. "Microsoft Windows - insecure by design". There
is a nice strap line. I wonder if their marketing folks would like to
use it. I'd be happy to offer them a royalty free license.

I've asked MS to provide the justification for this position in writing
- mainly because I intend writing up a blog post to make clear to those
who haven't already figured it out that the Microsoft WebDAV client is,
despite the improvements in recent Windows versions, still buggy and -
more importantly - Microsoft are point blank refusing to fix obvious
bugs and (minor) security vulnerabilities.

I recall that someone on this list said that they had switched to a 3rd
party WebDAV client and hadn't looked back since. Could that person
remind me what that client was. I'd be happy to give it a plug in the
blog post.


If that person was me, I was mentioning WebDrive 
(http://www.southrivertech.com/products/webdrive/)




I'll also be updating the Tomcat docs to make it clear that the
Microsoft WebDAV client is unsupported and I'll be removing the WebDAV
fix valve from Tomcat 9 onwards since it fixes bugs in old, unsupported
MS WebDAV clients and there is no way to fix issues like the current one
on the server side. I'll be asking httpd to add a similar note regarding
the supportability of the MS WebDAV client.

Mark

-
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: how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
Thank you so much Christopher. It solved my problem.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Wed, Jul 22, 2015 at 11:47 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Muralidhar,
>
> On 7/22/15 1:11 PM, Yaragalla Muralidhar wrote:
> > Actually my problem is I have purchased  a domain name on
> > everdata.com. It is "lakshmilab.com". When i type this in browser
> > they are showing a default tomcat documentation page. I want to
> > replace that with my own html designed page. By chance if you have
> > any idea please help me out.
>
> Sound like you want one of the two of these:
> http://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_p
> age_loaded_by_Tomcat.3F
>
> or
>
> http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_
> the_Tomcat_default_application.3F
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVr95GAAoJEBzwKT+lPKRYJPIQAKXD/UIFBN/n2Xil4jCb2M3e
> Kxa7q1OaoY1aV2pZnE8TaX/2Ztu7dRmxFXWFeR4bX36iAN2NOyExjEgFcfdB1BHp
> FlLkG09xvz0JB6vbn8D5zsT0gGfxub+d2qD8Tgu2qWnANEDsPKOsq7rMYNn5badE
> jrGK5o8ak3lTYVXVd54IQ1qVOL3oVBoPU4fGSWrLB34RQTfY+aEKOjWniBHLEPgq
> xqF6Zwo2NrRP4L93Pc5npbFHdzzQgxLASNAocOVC+aHxrdkiZl8DgROuxSKxyI78
> HWeDL2mv6PDZ8CBKTBKBbmiYnCTZtUG7HuZDQkVSM21kNBhbFvcsfpXV3aTGvK46
> x94rx4IV92LDjPgbzo6owleY5HoyUaSrZ6yrMLdAuWhjSprvFnU3nUrhhr1/c3LI
> qTAyH0YmI3d8f7w2TSj6h5Bi3wzK5tTvcdZqtNQ9SUbxG7T+rbA8GU+kSyxCMjJa
> HcKAEO2wABAsdKSY93/Fpgl4etNGom2QIuFY8orxT0lyEuoeZAmR9iLe1EVImnNQ
> 0A8+yUtGvbwsZ3J/tcyjcBhI7J2mLCzBCQ3zjm05pBrUhRvYyX+7uqlX+KSEvbgP
> eYDozQ3Da25Imhc1SnYdVvzTBS+JeD6j3r7axl85t3OrSh2IYt/aE/aqj3BgUDrM
> Ad8O5XlQ1TcTyZmiET/y
> =f7lv
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: [OT] Re: SSL configuration using PFX as keystore

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 7/22/15 1:18 PM, Mark Thomas wrote:
> On 08/07/2015 16:22, André Warnier wrote:
> 
> 
> 
>> With respect, you both don't get it.  MS support is deliberately 
>> pitiful, to emphasize the fact that MS software is by definition 
>> bug-free and does not really need support.
> 
> I've had several extremely frustrating telephone calls this
> afternoon where various levels of Microsoft staff repeating their
> position that the WebDAV client is "working as designed" and that
> prompting for authentication is a perfectly reasonable response
> when trying to connect to a server that does not require
> authentication but does have a cert issued by a CA the client
> doesn't trust.

Yep: "working as designed" means "we designed it to work with our own
products under the conditions we ave specified, and nuts to you if you
want something different." Otherwise known as the "standards be
damned" design principle. I don't know why anyone is surprised, here.

> So far the minor security vulnerability (details to follow once 
> Microsoft provide their final response in writing) is "working as 
> designed" as well. Hmm. "Microsoft Windows - insecure by design".
> There is a nice strap line. I wonder if their marketing folks would
> like to use it. I'd be happy to offer them a royalty free license.
> 
> I've asked MS to provide the justification for this position in
> writing - mainly because I intend writing up a blog post to make
> clear to those who haven't already figured it out that the
> Microsoft WebDAV client is, despite the improvements in recent
> Windows versions, still buggy and - more importantly - Microsoft
> are point blank refusing to fix obvious bugs and (minor) security
> vulnerabilities.
> 
> I recall that someone on this list said that they had switched to a
> 3rd party WebDAV client and hadn't looked back since. Could that
> person remind me what that client was. I'd be happy to give it a
> plug in the blog post.

South River Technologies' WebDrive. It's a remote filesystem driver
that creates a drive letter which maps to some remote share and
supports (proper) WebDAV(S) including proper file-locking (as well as
local caching of files with lots of configuration options),
(S)FTP/FTP(S), Amazon S3, Google Drive, DropBox, SharePoint, and
something called "OneDrive", which I've never heard of.

I've never used WebDrive for anything other than WebDAV; I'm not sure
how great it is for those other protocols, but I suspect it will
perform well. Their tech support folks were even kind enough to walk
one of my users through the installation and configuration of the
software when she called to ask how to download the installer.

http://www.southrivertech.com/products/webdrive/

(Note: I have no financial interest in SRT. I'm just a happy user of
their product.)

> I'll also be updating the Tomcat docs to make it clear that the 
> Microsoft WebDAV client is unsupported and I'll be removing the
> WebDAV fix valve from Tomcat 9 onwards since it fixes bugs in old,
> unsupported MS WebDAV clients and there is no way to fix issues
> like the current one on the server side. I'll be asking httpd to
> add a similar note regarding the supportability of the MS WebDAV
> client.

+1

I just sent an email to the folks running http://webdav.org/ about
Tomcat itself as well as WebDrive.

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

iQIcBAEBCAAGBQJVr+PrAAoJEBzwKT+lPKRYkwUP/RRE/FZ6WYLlsox2TJ5BHKrP
Ns/Ke7SiQ7cDfY7Da7lUjRxOYjlVI6LeLDMENsDSkPGWRU76lUDqVFiLGc3VqHpL
KQJlERQ7Qu8Byc8UIz3r6gnnZtNpZTmEk4mHhLr8f9LZ9+MABakgmT3nHWt9utdK
X9lyBz3FY9y8stnwhDyXau5tUBUhiM4bA0gy38cqynSQEl2UL92NTAz/cwj13NEZ
6lODrV1wR7bONi2FOeCwfEghq13RaGStdRPTtCI/C7UtG+1eCbicCv9Zjx/+0u13
yNJkUJAUNeSyE5ahFLbiz/WtUTUMulWTSU0uLXs3K0B2fpK3FQU26UYFZPVBMhG1
qNXOcHkdjzoYbfxSTwxsrnrk55daf7bdwjPJ5S/Ljz2nythXGzcZJpq9idNS+9VE
5hYsGd5kxyX1FPUn3/nBNcXBsaf2CgEMM1CEJgLIZqXFcRpV5QNZy0OafUUC1FZX
qSHJUJDhvYfuUZ6xK89yidSEiKmHgYPG7hNGgQWe4EbQ1SLLdYpQwRQODrJ3selp
Rvq2Qy7pZW1qP454gu1xHIuyGNgoCLzrY60knIr68OzQ96vSSGRC29hWPAEOpeh6
qbYG/s86jxq4FRPnxhSVvf8WJme7O4nmafn4c0D1WVGRH16V1bc4PWMTuwf8bV/j
2d85aDMdyUVpUiyMtrgA
=hV9K
-END PGP SIGNATURE-

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



Re: how to display a custom page

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Muralidhar,

On 7/22/15 1:11 PM, Yaragalla Muralidhar wrote:
> Actually my problem is I have purchased  a domain name on 
> everdata.com. It is "lakshmilab.com". When i type this in browser 
> they are showing a default tomcat documentation page. I want to 
> replace that with my own html designed page. By chance if you have 
> any idea please help me out.

Sound like you want one of the two of these:
http://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_p
age_loaded_by_Tomcat.3F

or

http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_
the_Tomcat_default_application.3F

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

iQIcBAEBCAAGBQJVr95GAAoJEBzwKT+lPKRYJPIQAKXD/UIFBN/n2Xil4jCb2M3e
Kxa7q1OaoY1aV2pZnE8TaX/2Ztu7dRmxFXWFeR4bX36iAN2NOyExjEgFcfdB1BHp
FlLkG09xvz0JB6vbn8D5zsT0gGfxub+d2qD8Tgu2qWnANEDsPKOsq7rMYNn5badE
jrGK5o8ak3lTYVXVd54IQ1qVOL3oVBoPU4fGSWrLB34RQTfY+aEKOjWniBHLEPgq
xqF6Zwo2NrRP4L93Pc5npbFHdzzQgxLASNAocOVC+aHxrdkiZl8DgROuxSKxyI78
HWeDL2mv6PDZ8CBKTBKBbmiYnCTZtUG7HuZDQkVSM21kNBhbFvcsfpXV3aTGvK46
x94rx4IV92LDjPgbzo6owleY5HoyUaSrZ6yrMLdAuWhjSprvFnU3nUrhhr1/c3LI
qTAyH0YmI3d8f7w2TSj6h5Bi3wzK5tTvcdZqtNQ9SUbxG7T+rbA8GU+kSyxCMjJa
HcKAEO2wABAsdKSY93/Fpgl4etNGom2QIuFY8orxT0lyEuoeZAmR9iLe1EVImnNQ
0A8+yUtGvbwsZ3J/tcyjcBhI7J2mLCzBCQ3zjm05pBrUhRvYyX+7uqlX+KSEvbgP
eYDozQ3Da25Imhc1SnYdVvzTBS+JeD6j3r7axl85t3OrSh2IYt/aE/aqj3BgUDrM
Ad8O5XlQ1TcTyZmiET/y
=f7lv
-END PGP SIGNATURE-

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



Re: [OT] Re: SSL configuration using PFX as keystore

2015-07-22 Thread Mark Thomas
On 08/07/2015 16:22, André Warnier wrote:



> With respect, you both don't get it.  MS support is deliberately
> pitiful, to emphasize the fact that MS software is by definition
> bug-free and does not really need support.

I've had several extremely frustrating telephone calls this afternoon
where various levels of Microsoft staff repeating their position that
the WebDAV client is "working as designed" and that prompting for
authentication is a perfectly reasonable response when trying to connect
to a server that does not require authentication but does have a cert
issued by a CA the client doesn't trust.

So far the minor security vulnerability (details to follow once
Microsoft provide their final response in writing) is "working as
designed" as well. Hmm. "Microsoft Windows - insecure by design". There
is a nice strap line. I wonder if their marketing folks would like to
use it. I'd be happy to offer them a royalty free license.

I've asked MS to provide the justification for this position in writing
- mainly because I intend writing up a blog post to make clear to those
who haven't already figured it out that the Microsoft WebDAV client is,
despite the improvements in recent Windows versions, still buggy and -
more importantly - Microsoft are point blank refusing to fix obvious
bugs and (minor) security vulnerabilities.

I recall that someone on this list said that they had switched to a 3rd
party WebDAV client and hadn't looked back since. Could that person
remind me what that client was. I'd be happy to give it a plug in the
blog post.

I'll also be updating the Tomcat docs to make it clear that the
Microsoft WebDAV client is unsupported and I'll be removing the WebDAV
fix valve from Tomcat 9 onwards since it fixes bugs in old, unsupported
MS WebDAV clients and there is no way to fix issues like the current one
on the server side. I'll be asking httpd to add a similar note regarding
the supportability of the MS WebDAV client.

Mark

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



Re: how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
Hi Christopher,
 Actually my problem is I have purchased  a domain name on everdata.com.
It is "lakshmilab.com". When i type this in browser they are showing a
default tomcat documentation page. I want to replace that with my own html
designed page. By chance if you have any idea please help me out.


On Wed, Jul 22, 2015 at 11:34 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Muralidhar,
>
> On 7/22/15 11:08 AM, Yaragalla Muralidhar wrote:
> > My web application is deployed in "webapp" folder. context path is
> > "zedlabs".
>
> Since the URL you presented will not be mapped to your /zedlabs
> application, you'll have to make a custom error page in the ROOT web
> application to do this for you.
>
> Specifically:
>
> 1. Ensure that webapps/ROOT exists (or that a ROOT web application is
> otherwise deployed)
>
> 2. Create your custom 404 error page in the ROOT context, for example
>under ROOT/errors/404.jsp
>
> 3. In ROOT/WEB-INF/web.xml, define a custom  for 404,
>and point it to the resource you created in step #2 above
>
> Hope that helps,
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVr9s4AAoJEBzwKT+lPKRYJvEQAIUvswX11ulgydvcTVjd6tm3
> kAC4o2eQRGOQ4uoxY6F7HG+qgu6UeDaYVrNWo9SQLeV6W6MkL6fH6VrYIiSJHz4D
> +KdVDIqorSPZXkVWkLeIrK1a2pBf4wqEcJRxyGeb8mY+4u+HVOOfHEWOG2pM2kFA
> MRBCPgSzecKooUWcuFUI+xtFjwMDRnHzZ2r4kg9/Ueax8e5GwIcmnuRNprDENyQs
> hg4/AkyADjc6vNGYk+MI7HOroi1+MDfVD/2fboR9MNrt0OzUMudkW/EvPYnmVbcI
> w15hHz9ssXhQjajYUpGp7uW3hwBPmMHeE05lgQ+vnZmDixLMLTnVJzAKKGg7hwzD
> sUPdpnKWNXuzbXDQKkm7vDRXF6mVa9Tc+dQ+Uqq/+g1aCh2f2UnKEyQbMX8rfTnl
> RUpaVN7q94tppC1XLyGkUCpW0bCxIFrCVQKjcCIsRAqxS28mkrXt9hr3M3217XO6
> P0qJQN9HjBKD4QROpBpueyhrfz8ZiOZdXziMwmAipBjpeb4G2DA+1Z4usSWGjOHZ
> v7ym3zYD9Swuh1NPYaAjojaivomZcuYQTq3k9L9WQ+GJeq55nlNvnRothTqLjULB
> a7eutD5UHIQ/IGVsmmOPTxiMgkAk9I2ldonBJGEJFaYEHFVOCMetDD3KQuZN0UUp
> +Ik5/lgx/SlJaTHEyGsn
> =ydHs
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: how to display a custom page

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Muralidhar,

On 7/22/15 11:08 AM, Yaragalla Muralidhar wrote:
> My web application is deployed in "webapp" folder. context path is 
> "zedlabs".

Since the URL you presented will not be mapped to your /zedlabs
application, you'll have to make a custom error page in the ROOT web
application to do this for you.

Specifically:

1. Ensure that webapps/ROOT exists (or that a ROOT web application is
otherwise deployed)

2. Create your custom 404 error page in the ROOT context, for example
   under ROOT/errors/404.jsp

3. In ROOT/WEB-INF/web.xml, define a custom  for 404,
   and point it to the resource you created in step #2 above

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVr9s4AAoJEBzwKT+lPKRYJvEQAIUvswX11ulgydvcTVjd6tm3
kAC4o2eQRGOQ4uoxY6F7HG+qgu6UeDaYVrNWo9SQLeV6W6MkL6fH6VrYIiSJHz4D
+KdVDIqorSPZXkVWkLeIrK1a2pBf4wqEcJRxyGeb8mY+4u+HVOOfHEWOG2pM2kFA
MRBCPgSzecKooUWcuFUI+xtFjwMDRnHzZ2r4kg9/Ueax8e5GwIcmnuRNprDENyQs
hg4/AkyADjc6vNGYk+MI7HOroi1+MDfVD/2fboR9MNrt0OzUMudkW/EvPYnmVbcI
w15hHz9ssXhQjajYUpGp7uW3hwBPmMHeE05lgQ+vnZmDixLMLTnVJzAKKGg7hwzD
sUPdpnKWNXuzbXDQKkm7vDRXF6mVa9Tc+dQ+Uqq/+g1aCh2f2UnKEyQbMX8rfTnl
RUpaVN7q94tppC1XLyGkUCpW0bCxIFrCVQKjcCIsRAqxS28mkrXt9hr3M3217XO6
P0qJQN9HjBKD4QROpBpueyhrfz8ZiOZdXziMwmAipBjpeb4G2DA+1Z4usSWGjOHZ
v7ym3zYD9Swuh1NPYaAjojaivomZcuYQTq3k9L9WQ+GJeq55nlNvnRothTqLjULB
a7eutD5UHIQ/IGVsmmOPTxiMgkAk9I2ldonBJGEJFaYEHFVOCMetDD3KQuZN0UUp
+Ik5/lgx/SlJaTHEyGsn
=ydHs
-END PGP SIGNATURE-

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



Re: Tomcat 7.0.34 - Lifecycle listener is not catching the events before the before_start vent

2015-07-22 Thread Manuri Amaya Perera
Thank you Konstantin.

On Sun, Jul 19, 2015 at 6:29 PM, Konstantin Kolinko 
wrote:

> 2015-07-19 9:26 GMT+03:00 Manuri Amaya Perera :
> > Hi,
> >
> > I am using tomcat 7.0.34. I've written a simple Lifecycle listener
> > implementing org.apache.catalina.LifecycleListener.
> >
> > I am simply overriding the lifecycleEvent method and printing the event
> > type. When a web application is being deployed, the first event I can see
> > is before_start.
> > But there should be several events before that such as before_init.
> >
> > Is this the expected behavior?
>
> Reproducible with the current 7.0.63.
>
> This is an expected behaviour.  Context itself is configured by a listener.
>
> The listeners are added by
> org.apache.catalina.startup.ContextConfig#processContextConfig() -
> parses context.xml files (the global ones and the one for the web
> application)
> - called from o.a.c.startup.ContextConfig#contextConfig()
> - called from o.a.c.startup.ContextConfig#init()
> - called from o.a.c.startup.lifecycleEvent() on Lifecycle.AFTER_INIT_EVENT
>
> At the time of the "after_init" event the "before_init" event has
> already happened.
>
>
> For reference, reproduction source code
> a sample listener class, to be put into catalina.base/lib/test
> [[[
> package test;
>
> import org.apache.catalina.LifecycleEvent;
> import org.apache.catalina.LifecycleListener;
> import org.apache.juli.logging.Log;
> import org.apache.juli.logging.LogFactory;
>
> public class TestListener implements LifecycleListener {
> private final Log log = LogFactory.getLog(getClass());
> @Override
> public void lifecycleEvent(LifecycleEvent event) {
> log.info("Event: [" + event.getType() + "]");
> }
> }
> ]]]
>
> configuration, catalina.base/webapps/examples/META-INF/context.xml
> [[[
> 
> 
> 
> ]]]
>
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Regards*
*Manuri Amaya Perera,*
*Undergraduate,*
*Department of Computer Science & Engineering,*
*University of Moratuwa,*
*Sri Lanka.*


Re: how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
On Wed, Jul 22, 2015 at 9:38 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> My web application is deployed in "webapp" folder. context path is
> "zedlabs".
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ *
>
> On Wed, Jul 22, 2015 at 8:52 PM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Yaragalla,
>>
>> On 7/22/15 10:09 AM, Yaragalla Muralidhar wrote:
>> >> On 7/22/15 9:31 AM, Yaragalla Muralidhar wrote:
>> >>> when i typle "localhost:8080" in the browser it is showing a
>> >>> default page with 404 error. I want to replace this page with
>> >>> a custom html page. So how can i do that?
>> >>
>> >> Where is your web application deployed (what is its context
>> >> path)?
>> >>
>> >> Do you also have a ROOT ("/") web application?
>> >
>> > Yes it is there. do i have to delete that?
>>
>> It depends on the answer to my other question:
>>
>> >> Where is your web application deployed (what is its context
>> >> path)?
>>
>> My web application is deployed in "webapp" folder. context path is
>> "zedlabs".
>>
>> - -chris
>> -BEGIN PGP SIGNATURE-
>> Comment: GPGTools - http://gpgtools.org
>>
>> iQIcBAEBCAAGBQJVr7VNAAoJEBzwKT+lPKRY++IQALtgAMQgFYMdGuADF3xzzC1G
>> 9eb/CxZHUSh31swl0rR3RMoib+asO9Z6RhDbXdyhNnR0v6NGCj/zSmMdt1M0ErUP
>> DwqTEbB7T9rmKHl4BpB+lXb2ZU/ToYqkrpbxOFJxrBF6Ne8X4P1nIsK66CE2vfng
>> t64KXloCFhRpOZ3NRPsV1DzUwy4WeuPOOWBE+OCJRbC5IG9fDKCZZ2DwPLo83SlX
>> ZGDkW8JxXlCJKq7UUFHVXtcpfz2/lSgAk2J6EYbAxRosKrB0Ialt/AnPqJOwev37
>> Q1vF4FUAx9b24jvyoGXhYnEq0bdhQoNugkzdJMrIzI7sUG4bJmT946nK1Lvat47N
>> l+gLeqkkpWPKHy873na7ydAbBb+F7hGD9x4TbIw0p/9tM8zXUxgD+g+33An+ETAl
>> MdaeuZWaCYOXH5Ck+4h5FVbXFIl+7uC9/mXz4HuwD3FBOZvWSuXaaFFpfbkluEZx
>> LWsAP6KCNpIEgAbowB9BoB6b4HzYEQpklLms06j0s5yFMQrEdbONF2tif9HKLWQR
>> SgI+Utz9G1fFmPqgSOkU4LLawQI/7kbpthUtv3oTDNGiTVu09U6pzaMDBzoKqECn
>> YSCdroO68ibku93xa6+l6JGcjQldaCO9s4DIqWwYDW/J8miKCt1nSiLYJBPcm3Yt
>> 3wj75o8Y/mbwQFDyjc3B
>> =H2lQ
>> -END PGP SIGNATURE-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


Re: how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
My web application is deployed in "webapp" folder. context path is
"zedlabs".

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Wed, Jul 22, 2015 at 8:52 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Yaragalla,
>
> On 7/22/15 10:09 AM, Yaragalla Muralidhar wrote:
> >> On 7/22/15 9:31 AM, Yaragalla Muralidhar wrote:
> >>> when i typle "localhost:8080" in the browser it is showing a
> >>> default page with 404 error. I want to replace this page with
> >>> a custom html page. So how can i do that?
> >>
> >> Where is your web application deployed (what is its context
> >> path)?
> >>
> >> Do you also have a ROOT ("/") web application?
> >
> > Yes it is there. do i have to delete that?
>
> It depends on the answer to my other question:
>
> >> Where is your web application deployed (what is its context
> >> path)?
>
> ?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVr7VNAAoJEBzwKT+lPKRY++IQALtgAMQgFYMdGuADF3xzzC1G
> 9eb/CxZHUSh31swl0rR3RMoib+asO9Z6RhDbXdyhNnR0v6NGCj/zSmMdt1M0ErUP
> DwqTEbB7T9rmKHl4BpB+lXb2ZU/ToYqkrpbxOFJxrBF6Ne8X4P1nIsK66CE2vfng
> t64KXloCFhRpOZ3NRPsV1DzUwy4WeuPOOWBE+OCJRbC5IG9fDKCZZ2DwPLo83SlX
> ZGDkW8JxXlCJKq7UUFHVXtcpfz2/lSgAk2J6EYbAxRosKrB0Ialt/AnPqJOwev37
> Q1vF4FUAx9b24jvyoGXhYnEq0bdhQoNugkzdJMrIzI7sUG4bJmT946nK1Lvat47N
> l+gLeqkkpWPKHy873na7ydAbBb+F7hGD9x4TbIw0p/9tM8zXUxgD+g+33An+ETAl
> MdaeuZWaCYOXH5Ck+4h5FVbXFIl+7uC9/mXz4HuwD3FBOZvWSuXaaFFpfbkluEZx
> LWsAP6KCNpIEgAbowB9BoB6b4HzYEQpklLms06j0s5yFMQrEdbONF2tif9HKLWQR
> SgI+Utz9G1fFmPqgSOkU4LLawQI/7kbpthUtv3oTDNGiTVu09U6pzaMDBzoKqECn
> YSCdroO68ibku93xa6+l6JGcjQldaCO9s4DIqWwYDW/J8miKCt1nSiLYJBPcm3Yt
> 3wj75o8Y/mbwQFDyjc3B
> =H2lQ
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: how to display a custom page

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Yaragalla,

On 7/22/15 10:09 AM, Yaragalla Muralidhar wrote:
>> On 7/22/15 9:31 AM, Yaragalla Muralidhar wrote:
>>> when i typle "localhost:8080" in the browser it is showing a 
>>> default page with 404 error. I want to replace this page with
>>> a custom html page. So how can i do that?
>> 
>> Where is your web application deployed (what is its context
>> path)?
>> 
>> Do you also have a ROOT ("/") web application?
> 
> Yes it is there. do i have to delete that?

It depends on the answer to my other question:

>> Where is your web application deployed (what is its context
>> path)?

?

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

iQIcBAEBCAAGBQJVr7VNAAoJEBzwKT+lPKRY++IQALtgAMQgFYMdGuADF3xzzC1G
9eb/CxZHUSh31swl0rR3RMoib+asO9Z6RhDbXdyhNnR0v6NGCj/zSmMdt1M0ErUP
DwqTEbB7T9rmKHl4BpB+lXb2ZU/ToYqkrpbxOFJxrBF6Ne8X4P1nIsK66CE2vfng
t64KXloCFhRpOZ3NRPsV1DzUwy4WeuPOOWBE+OCJRbC5IG9fDKCZZ2DwPLo83SlX
ZGDkW8JxXlCJKq7UUFHVXtcpfz2/lSgAk2J6EYbAxRosKrB0Ialt/AnPqJOwev37
Q1vF4FUAx9b24jvyoGXhYnEq0bdhQoNugkzdJMrIzI7sUG4bJmT946nK1Lvat47N
l+gLeqkkpWPKHy873na7ydAbBb+F7hGD9x4TbIw0p/9tM8zXUxgD+g+33An+ETAl
MdaeuZWaCYOXH5Ck+4h5FVbXFIl+7uC9/mXz4HuwD3FBOZvWSuXaaFFpfbkluEZx
LWsAP6KCNpIEgAbowB9BoB6b4HzYEQpklLms06j0s5yFMQrEdbONF2tif9HKLWQR
SgI+Utz9G1fFmPqgSOkU4LLawQI/7kbpthUtv3oTDNGiTVu09U6pzaMDBzoKqECn
YSCdroO68ibku93xa6+l6JGcjQldaCO9s4DIqWwYDW/J8miKCt1nSiLYJBPcm3Yt
3wj75o8Y/mbwQFDyjc3B
=H2lQ
-END PGP SIGNATURE-

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



Re: how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
Yes it is there. do i have to delete that?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Wed, Jul 22, 2015 at 8:35 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Muralidhar,
>
> On 7/22/15 9:31 AM, Yaragalla Muralidhar wrote:
> > when i typle "localhost:8080" in the browser it is showing a
> > default page with 404 error. I want to replace this page with a
> > custom html page. So how can i do that?
>
> Where is your web application deployed (what is its context path)?
>
> Do you also have a ROOT ("/") web application?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVr7EtAAoJEBzwKT+lPKRYLAcP/jbBoEQF/VTgqyvyzvPzYMXy
> tgXRth+zBJ9YwRyBYsf7AVX+AdOnGYMNVIUUM417yl8kjoh0s4Qbvpi1yK2ervKG
> CsDA54L6HhDedmkcfUHza6yA1PsVEgrMX2Q1DXn+kKiCwJjboBZNEbsWUXjUvlCS
> 3wZQnhani5Z2MkiT8UWGDIjXeDKnZC7ZYSPRWQOAZlndibLz/4i3T+6R/5o18V16
> M7V9hp7DyVJwmgRiHeg7nrvUkR/wczmdAxC+Cmx4WzTrZkVJ5aNw2QHqlaUDJZYs
> xF5FLdXEgU7p2xrjO/2/yn1EgFnJSSyVokFXbgdFiWy+onviLjP80xHrNhsUxjSu
> eqgQDav1c5bO7hZ5Eyn+IOUe8C4JfDKItvp3l7C4emVHGmUrEJIKgunfn6B73zRj
> mJStF02a4/I3Wwq622R+mmT4oz4nrXXMnywLASgOcdTfPIC3HsXvkHxA8XTqA3Nd
> lKTf6RarhFcLVKs6EclXUGWmcEC2OxqVyR57nvqhpL3spRvVGu5iSFQtdODvTlNS
> 9hpHH3QXiI4A2PayuBjL2xkQLBk2IEOxliCUunBcFFVo5Fdej2FiwF/Bz2zCSvn/
> z3MwKFxAa9q+aaw0I3uoh8Ibgc/HopknE6k/hERr0vHEv32DxZys4gxC/P5TOdxz
> YkNaEz/Olll13WVQpN2M
> =zMMq
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: how to display a custom page

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Muralidhar,

On 7/22/15 9:31 AM, Yaragalla Muralidhar wrote:
> when i typle "localhost:8080" in the browser it is showing a
> default page with 404 error. I want to replace this page with a
> custom html page. So how can i do that?

Where is your web application deployed (what is its context path)?

Do you also have a ROOT ("/") web application?

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

iQIcBAEBCAAGBQJVr7EtAAoJEBzwKT+lPKRYLAcP/jbBoEQF/VTgqyvyzvPzYMXy
tgXRth+zBJ9YwRyBYsf7AVX+AdOnGYMNVIUUM417yl8kjoh0s4Qbvpi1yK2ervKG
CsDA54L6HhDedmkcfUHza6yA1PsVEgrMX2Q1DXn+kKiCwJjboBZNEbsWUXjUvlCS
3wZQnhani5Z2MkiT8UWGDIjXeDKnZC7ZYSPRWQOAZlndibLz/4i3T+6R/5o18V16
M7V9hp7DyVJwmgRiHeg7nrvUkR/wczmdAxC+Cmx4WzTrZkVJ5aNw2QHqlaUDJZYs
xF5FLdXEgU7p2xrjO/2/yn1EgFnJSSyVokFXbgdFiWy+onviLjP80xHrNhsUxjSu
eqgQDav1c5bO7hZ5Eyn+IOUe8C4JfDKItvp3l7C4emVHGmUrEJIKgunfn6B73zRj
mJStF02a4/I3Wwq622R+mmT4oz4nrXXMnywLASgOcdTfPIC3HsXvkHxA8XTqA3Nd
lKTf6RarhFcLVKs6EclXUGWmcEC2OxqVyR57nvqhpL3spRvVGu5iSFQtdODvTlNS
9hpHH3QXiI4A2PayuBjL2xkQLBk2IEOxliCUunBcFFVo5Fdej2FiwF/Bz2zCSvn/
z3MwKFxAa9q+aaw0I3uoh8Ibgc/HopknE6k/hERr0vHEv32DxZys4gxC/P5TOdxz
YkNaEz/Olll13WVQpN2M
=zMMq
-END PGP SIGNATURE-

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



NullPointerException in NioEndpoint under load (but not only)

2015-07-22 Thread Antoine Bonavita

Hello,

Before I start with my question and stack trace, let me give you a bit 
of context:

* Tomcat 7.0.61
* OpenJDK1.7.0_79
* Debian7
* Tomcat is running "behind" an nginx server (reverse proxying).
* As we have pretty stringent constraints on response time, nginx is 
configured to reply to the browser after 2s if it has not heard back 
from Tomcat.
* As implied in the email subject, we are using the http-nio connector. 
This is because our code is calling many webservices in parallel and we 
don't want to be stuck waiting for one of them (after 300ms we timeout 
the request and consider they will not answer).


Now, my problem is that once in a while (with a higher probability under 
load), I get this exception:

java.lang.NullPointerException
at 
org.apache.tomcat.util.net.NioEndpoint.processSocketAsync(NioEndpoint.java:730) 
~[tomcat-coyote.jar:7.0.61]
at 
org.apache.coyote.AbstractProcessor.setErrorState(AbstractProcessor.java:84) 
~[tomcat-coyote.jar:7.0.61]
at 
org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:764) 
~[tomcat-coyote.jar:7.0.61]
at org.apache.coyote.Response.action(Response.java:174) 
~[tomcat-coyote.jar:7.0.61]
at org.apache.coyote.Response.finish(Response.java:274) 
~[tomcat-coyote.jar:7.0.61]
at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:319) 
~[catalina.jar:7.0.61]
at 
org.apache.catalina.connector.CoyoteWriter.close(CoyoteWriter.java:112) 
~[catalina.jar:7.0.61]
at 
networkComm.commands.HttpCommand.sendResponse(HttpCommand.java:239) 
~[HttpCommand.class:?]
at 
com.stickyadstv.adex.AuctioneerResponseWriter.respondToClient(AuctioneerResponseWriter.java:323) 
~[AuctioneerResponseWriter.class:?]
at 
com.stickyadstv.adex.BidSerializationListener.checkSerializationIsComplete(BidSerializationListener.java:70) 
~[BidSerializationListener.class:?]
at 
com.stickyadstv.adex.BidSerializationListener.completed(BidSerializationListener.java:53) 
~[BidSerializationListener.class:?]
at 
com.stickyadstv.adex.bidder.marketplace.MarketPlaceBidSerializationWriter.respondToClient(MarketPlaceBidSerializationWriter.java:92) 
~[MarketPlaceBidSerializationWriter.class:?]
at 
com.stickyadstv.adex.BidSerializationListener.checkSerializationIsComplete(BidSerializationListener.java:70) 
~[BidSerializationListener.class:?]
at 
com.stickyadstv.adex.BidSerializationListener.completed(BidSerializationListener.java:53) 
~[BidSerializationListener.class:?]
at 
com.stickyadstv.adex.BidSerializationListener.completed(BidSerializationListener.java:24) 
~[BidSerializationListener.class:?]
at 
org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119) 
~[httpcore-4.4.1.jar:4.4.1]
at 
com.stickyadstv.adex.bidder.openrtb.OpenRTBBid.serializeAdm(OpenRTBBid.java:166) 
~[OpenRTBBid.class:?]
at 
com.stickyadstv.adex.bidder.openrtb.AdmReceived.completed(AdmReceived.java:111) 
~[AdmReceived.class:?]
at 
com.stickyadstv.adex.bidder.openrtb.AdmReceived.completed(AdmReceived.java:32) 
~[AdmReceived.class:?]
at 
org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119) 
~[httpcore-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:177) 
~[httpasyncclient-4.1.jar:4.1]
at 
org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:412) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:305) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:267) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) 
~[httpasyncclient-4.1.jar:4.1]
at 
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) 
~[httpasyncclient-4.1.jar:4.1]
at 
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:116) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106) 
~[httpcore-nio-4.4.1.jar:4.4.1]
at 
org.apache.http.impl.nio.react

how to display a custom page

2015-07-22 Thread Yaragalla Muralidhar
Hi Team,
 when i typle "localhost:8080" in the browser it is showing a default
page with 404 error. I want to replace this page with a custom html page.
So how can i do that?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *


Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file

2015-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Rahul,

On 7/21/15 11:02 PM, Rahul Kumar Singh wrote:
> Dear Christopher,
>> Any quotas on the filesystem?
> No.
>> Any idea which class it's having trouble loading?
> 
> I have no idea on this but I have got the below exception:
> 
> ==

>
> 
2015-07-17 09:53:50,860  javax.servlet.ServletException:
> java.lang.ClassFormatError: Truncated class file at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343) 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
cationFilterChain.java:303)
>
> 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:208)
> 

Well,
> 
it looks like you are having a problem loading a JSP-based class
file. You could write a script to try to load each JSP .class file to
see which one is broken. Something like this:

$ for class in $(find . -name "*.class") ; \
  do \
echo $class \
javap -classpath [classpath] $(sed -e 's/\.class//' ) \
  done

> For more reference there is some logs from Catalina.out after
> tomcat startup.
> 
> Jul 17, 2015 11:58:33 AM
> org.apache.jasper.compiler.TldLocationsCache tldScanJar INFO: At
> least one JAR was scanned for TLDs yet contained no TLDs. Enable
> debug logging for this logger for a complete list of JARs that were
> scanned but no TLDs were found in them. Skipping unneeded JARs
> during scanning can improve startup time and JSP compilation time.

This is unrelated to your real problem.

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

iQIcBAEBCAAGBQJVr5+oAAoJEBzwKT+lPKRY54YQAJWJpc9wtHX5jZQS2eX0EqDD
nPvlA9P7w3Oc27w8cTMDdLCXFT60ZqnNFjO3h3UHspJ0B6vBhn1xBUTePRzlnFPn
0qdcTVuTgyAfQzBPh1luqXaEFMi815OV+ptzte8PQtkfcZbwzuAmbt//i4SJdWPt
2ES2FMQlaydv+LpQwUst11eXJtvsLXixKBWlD3BkplZ1tWkHl0xsWHlV7E8qupAG
LslCIV8hVLxYH1rOHbvirtmxDVpaqWGVEbFKq5oT/nBwDRmZWhyB+YcjOluY1KBl
1OtbhEAOuBjYMrtiYvc+gT2FcGk73U0V/diL5niq5LhzsoSwvthRTSp/abSZlzhd
PF5RjtyS5AygdwqJMkYFeIcl3Di3/eFQhq/FQobdcuOXO+QcL4TMUTjrFc80rlE6
hIaQM0XgJbr7aIzLBDsY0WvksGnROwPt6PAlWBisSN9GAD/P2oqUNSzkQmH7UvPp
gF2pGhLZvamNsWqcq+XUfrE2OwGrUsGfHmlxwdXg6ZbWpZ900rVJmLOSfg3xLW8x
lYTKNofdofrZBX93ahp4/xK/UjmBH/ORP7JzXIuirhct3DvDnACPt0JC+WrVKWee
N6aWxKJIIao5YIcT6h3wKY5Oo8Buakteds0xGmTbhzeAdc3oRxyqYQ/jyiRfjsNL
issppLvjG+tCLBboK+3+
=a0Du
-END PGP SIGNATURE-

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