You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by prasoon sharma <sh...@gmail.com> on 2019/01/15 10:33:40 UTC

Tomcat 8.5 Error related to Encoding Detector

Hi
I am facing issue with Tomcat 8.5 on my Centos Server.

I am getting HTTP 500 error as

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
not initialize class org.apache.jasper.compiler.EncodingDetector


Check the detailed description at
https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com

Thanks

Re: Tomcat 8.5 Error related to Encoding Detector

Posted by Guang Chao <gu...@gmail.com>.
On Tue, Jan 15, 2019 at 8:31 PM prasoon sharma <sh...@gmail.com>
wrote:

> Hi
> I used the tutorial at
> https://www.rosehosting.com/blog/how-to-install-tomcat-8-on-a-centos-6-vps/
> and
> some tips from
>
> https://www.openprogrammer.info/2015/06/14/how-to-install-java-8-and-tomcat-8-on-centos-6-as-service/
> I have configured it at 8081 port
>
>
Did you also use Centos 6?


>
> On Tue, Jan 15, 2019 at 4:14 PM Mark Thomas <ma...@apache.org> wrote:
>
> > On 15/01/2019 10:33, prasoon sharma wrote:
> > > Hi
> > > I am facing issue with Tomcat 8.5 on my Centos Server.
> > >
> > > I am getting HTTP 500 error as
> > >
> > > javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
> > > not initialize class org.apache.jasper.compiler.EncodingDetector
> > >
> > >
> > > Check the detailed description at
> > >
> >
> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com
> >
> > What steps did you take to install Apache Tomcat?
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>


-- 
Guang <http://javadevnotes.com/java-integer-to-string-examples>

Re: Tomcat 8.5 Error related to Encoding Detector

Posted by prasoon sharma <sh...@gmail.com>.
Hi
Please check version details
Server version: Apache Tomcat/8.5.37
Server built:   Dec 12 2018 12:07:02 UTC
Server number:  8.5.37.0
OS Name:        Linux
OS Version:     2.6.32-754.9.1.el6.x86_64
Architecture:   amd64
JVM Version:    1.8.0_191-b12
JVM Vendor:     Oracle Corporation
CENTOS 6.10 kvm [server]
There are no web apps deployed.
Host manager itself is not getting opened




On Wed, Jan 16, 2019 at 2:59 AM Mark Thomas <ma...@apache.org> wrote:

> On 15/01/2019 12:31, prasoon sharma wrote:
> > Hi
> > I used the tutorial at
> >
> https://www.rosehosting.com/blog/how-to-install-tomcat-8-on-a-centos-6-vps/
> and
> > some tips from
> >
> https://www.openprogrammer.info/2015/06/14/how-to-install-java-8-and-tomcat-8-on-centos-6-as-service/
> > I have configured it at 8081 port
>
> Which Tomcat version did you install?
>
> Are you sure the download was not corrupted?
>
> Does the manifest of $CATALINA_HOME/lib/jasper.jar show the same version?
>
> Does your web application include any Tomcat JARs in WEB-INF/lib?
>
> Mark
>
> >
> >
> > On Tue, Jan 15, 2019 at 4:14 PM Mark Thomas <ma...@apache.org> wrote:
> >
> >> On 15/01/2019 10:33, prasoon sharma wrote:
> >>> Hi
> >>> I am facing issue with Tomcat 8.5 on my Centos Server.
> >>>
> >>> I am getting HTTP 500 error as
> >>>
> >>> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
> >>> not initialize class org.apache.jasper.compiler.EncodingDetector
> >>>
> >>>
> >>> Check the detailed description at
> >>>
> >>
> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com
> >>
> >> What steps did you take to install Apache Tomcat?
> >>
> >> Mark
> >>
> >> ---------------------------------------------------------------------
> >> 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: Tomcat 8.5 Error related to Encoding Detector

Posted by Mark Thomas <ma...@apache.org>.
On 15/01/2019 12:31, prasoon sharma wrote:
> Hi
> I used the tutorial at
> https://www.rosehosting.com/blog/how-to-install-tomcat-8-on-a-centos-6-vps/ and
> some tips from
> https://www.openprogrammer.info/2015/06/14/how-to-install-java-8-and-tomcat-8-on-centos-6-as-service/
> I have configured it at 8081 port

Which Tomcat version did you install?

Are you sure the download was not corrupted?

Does the manifest of $CATALINA_HOME/lib/jasper.jar show the same version?

Does your web application include any Tomcat JARs in WEB-INF/lib?

Mark

> 
> 
> On Tue, Jan 15, 2019 at 4:14 PM Mark Thomas <ma...@apache.org> wrote:
> 
>> On 15/01/2019 10:33, prasoon sharma wrote:
>>> Hi
>>> I am facing issue with Tomcat 8.5 on my Centos Server.
>>>
>>> I am getting HTTP 500 error as
>>>
>>> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
>>> not initialize class org.apache.jasper.compiler.EncodingDetector
>>>
>>>
>>> Check the detailed description at
>>>
>> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com
>>
>> What steps did you take to install Apache Tomcat?
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> 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: Tomcat 8.5 Error related to Encoding Detector

Posted by Phumelela Mdluli <pu...@gmail.com>.
Hi there,

Your rosehosting source seems legit, may even try going straight to
Apache website. The http status code 500 is "an internal server
error". Please share your tomcat log files i.e. Catalina.out. Seems
clear that your tomcat server/container download is not playing well
with something. Double check your Java and Server versions, plus their
(your downloads) compatibility with each other. Having downloaded
Tomcat several times (for Linux), I think you should know that it
typically works right right off the net.

Regards,

Phumelela

On 1/15/19, prasoon sharma <sh...@gmail.com> wrote:
> Hi
> I used the tutorial at
> https://www.rosehosting.com/blog/how-to-install-tomcat-8-on-a-centos-6-vps/
> and
> some tips from
> https://www.openprogrammer.info/2015/06/14/how-to-install-java-8-and-tomcat-8-on-centos-6-as-service/
> I have configured it at 8081 port
>
>
> On Tue, Jan 15, 2019 at 4:14 PM Mark Thomas <ma...@apache.org> wrote:
>
>> On 15/01/2019 10:33, prasoon sharma wrote:
>> > Hi
>> > I am facing issue with Tomcat 8.5 on my Centos Server.
>> >
>> > I am getting HTTP 500 error as
>> >
>> > javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
>> > not initialize class org.apache.jasper.compiler.EncodingDetector
>> >
>> >
>> > Check the detailed description at
>> >
>> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com
>>
>> What steps did you take to install Apache Tomcat?
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>


-- 
Yours Sincerely,

Phumelela Mdluli
Lake Forest College '15
Waterford Kamhlaba '10 '08

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


Re: Tomcat 8.5 Error related to Encoding Detector

Posted by prasoon sharma <sh...@gmail.com>.
Hi
I used the tutorial at
https://www.rosehosting.com/blog/how-to-install-tomcat-8-on-a-centos-6-vps/ and
some tips from
https://www.openprogrammer.info/2015/06/14/how-to-install-java-8-and-tomcat-8-on-centos-6-as-service/
I have configured it at 8081 port


On Tue, Jan 15, 2019 at 4:14 PM Mark Thomas <ma...@apache.org> wrote:

> On 15/01/2019 10:33, prasoon sharma wrote:
> > Hi
> > I am facing issue with Tomcat 8.5 on my Centos Server.
> >
> > I am getting HTTP 500 error as
> >
> > javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
> > not initialize class org.apache.jasper.compiler.EncodingDetector
> >
> >
> > Check the detailed description at
> >
> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com
>
> What steps did you take to install Apache Tomcat?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 8.5 Error related to Encoding Detector

Posted by Mark Thomas <ma...@apache.org>.
On 15/01/2019 10:33, prasoon sharma wrote:
> Hi
> I am facing issue with Tomcat 8.5 on my Centos Server.
> 
> I am getting HTTP 500 error as
> 
> javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could
> not initialize class org.apache.jasper.compiler.EncodingDetector
> 
> 
> Check the detailed description at
> https://stackoverflow.com/questions/54076418/java-lang-noclassdeffounderror-could-not-initialize-class-org-apache-jasper-com

What steps did you take to install Apache Tomcat?

Mark

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