LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-15-2013, 02:11 PM   #1
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Rep: Reputation: 0
Tomcat issue


hello,

Just now I grep "Error" from catelina.err and found below errors.

Please suggest how to deal with it.

java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
SEVERE: Skipped installing application listeners due to previous error(s)
SEVERE: Error listenerStart
SEVERE: Context [/testStruts] startup failed due to previous errors
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor NetBanking.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor NetBank.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor ImageStruts.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor ImageUpload.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error getConfigured
SEVERE: Context [/cgi-bin] startup failed due to previous errors
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error getConfigured
SEVERE: Context [/ondot] startup failed due to previous errors
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
SEVERE: Skipped installing application listeners due to previous error(s)
SEVERE: Error listenerStart
SEVERE: Context [/simpleStruts] startup failed due to previous errors
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
SEVERE: Skipped installing application listeners due to previous error(s)
SEVERE: Error listenerStart
SEVERE: Context [/testStruts] startup failed due to previous errors
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor NetBanking.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor NetBank.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor ImageStruts.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error deploying configuration descriptor ImageUpload.xml
SEVERE: Error starting static Resources
SEVERE: Error in resourceStart()
SEVERE: Error getConfigured
SEVERE: Context [/cgi-bin] startup failed due to previous errors
 
Old 02-16-2013, 10:54 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,218

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by amolmistry View Post
hello,
Just now I grep "Error" from catelina.err and found below errors. Please suggest how to deal with it.

java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
First things I'd suggest would be to not post the same question twice, and to always try to look up an error on your own first. From a very brief Google search:
http://stackoverflow.com/questions/3...w-util-randomg

..and it's one of many, with possible solutions. And, I'll also suggest to post details...things like version/distro of Linux, Tomcat, who wrote the application, has it ever worked, has anything changed recently, etc.
 
Old 02-18-2013, 01:27 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 561

Rep: Reputation: 58
Try: http://www.jarfinder.com/index.php/j...ressionFactory download the jar and put it in classes and restart tomcat. Hope it works.
 
Old 02-20-2013, 10:24 AM   #4
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
but Tomcat is working properly, only sometimes it get crashes and have to restart it again and again.

I did not got anything suspicious from catelina.err and catelina.out hence did grep for "Error" from catelina.err and found above log.

is it like if your provided jar is not installed then also tomcat can work, if yes then do you know any reason why tomcat is getting crash again and again,
 
Old 02-20-2013, 11:38 AM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,218

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by amolmistry View Post
but Tomcat is working properly, only sometimes it get crashes and have to restart it again and again. I did not got anything suspicious from catelina.err and catelina.out hence did grep for "Error" from catelina.err and found above log. is it like if your provided jar is not installed then also tomcat can work, if yes then do you know any reason why tomcat is getting crash again and again,
Ok, and again the questions are:
  • Version/distro of Linux?
  • Version of Tomcat?
  • Who wrote the application (in-house at your company, or did you download it?)
  • If you downloaded it, where did you download it from, and are there updates to it?
  • Has it ever worked?
  • Has anything changed recently?
Just restating your question without adding any details is pointless, as is asking the same question more than once:
http://www.linuxquestions.org/questi...es-4175441684/

The answer to "why tomcat is getting crash" is: there's an error in the application. Until you provide details, there's nothing else we can tell you. Did you look at the weblink provided before?

Last edited by TB0ne; 02-20-2013 at 11:40 AM.
 
Old 02-20-2013, 11:44 AM   #6
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
SEVERE: Error starting static Resources
Take a backup & Clean up your Tomcat Work Directory.Few Cases above error occurs due to updating jsp file on existing Tomcat servers.But Tomcat seems to be running with old jsp .Backup & Clean your work folder and try to restart the Tomcat server.

Last edited by arun5002; 02-20-2013 at 11:48 AM.
 
Old 02-21-2013, 03:18 AM   #7
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
Hello,

TBone, apologies for same,

Your required details as follows.

Version/distro of Linux?
CloudLinux Server release 6.3

Version of Tomcat?
apache-tomcat-5.5.36

Who wrote the application (in-house at your company, or did you download it?)
By my customer, (it is shared server, and I'm looking after it)

If you downloaded it, where did you download it from, and are there updates to it?
Not aware

Has it ever worked?
Yes,

Has anything changed recently?
Yes, as customer said so.

Just received complained today that customer's java based website is stopped working after uploading .jar files,

Now error is throwing "The requested resource () is not available" but verified other java websites and noticed that those all websites are working properly,

It means now there is no issue of crashing, now only issues is happening only when any developer re-uploads his project.

In our case, we are using cPanel as a web hosting panel, in which no need to deploy complete .war file instead have to upload files under WEB-INF, classes, lib which are internally linked with Tomcat.
 
Old 02-21-2013, 03:23 AM   #8
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by arun5002 View Post
Take a backup & Clean up your Tomcat Work Directory.Few Cases above error occurs due to updating jsp file on existing Tomcat servers.But Tomcat seems to be running with old jsp .Backup & Clean your work folder and try to restart the Tomcat server.
Correct, same thing is happening, but how to get rid of this,

Since restating tomcat is not proper solution for this issue, but is it necessary to restart the Tomcat after any changes in made on .jsp files?
 
Old 02-21-2013, 10:11 AM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,218

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by amolmistry View Post
Hello,
Who wrote the application (in-house at your company, or did you download it?)
By my customer, (it is shared server, and I'm looking after it)

Has anything changed recently?
Yes, as customer said so.

Just received complained today that customer's java based website is stopped working after uploading .jar files, Now error is throwing "The requested resource () is not available" but verified other java websites and noticed that those all websites are working properly, It means now there is no issue of crashing, now only issues is happening only when any developer re-uploads his project.
Unless your customer is paying you for programming, this is not your issue. Note the bolded parts above...the customer changed something, and now things aren't working. Since THEY wrote the application, THEY need to find and fix the problem. This isn't Tomcat related...the fact that other websites are working, but THEIRS is not (and it's not working AFTER they made changes), tells you that.

The only thing you can really do here is to offer to restore the customers files from a date before they made the changes. If all you're providing is hosting, and THEY damaged their own web page, that's the only thing you can do.
 
Old 02-22-2013, 02:06 AM   #10
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
Hello,

TB0ne, you are absolutely correct, but the thing is atleast we have to give them rough solution since restarting Tomcat resolves issues then what precautions has to take from their end so that we do not have to restart the tomcat.

Again from my end I'm not cleared that what exactly is happening if restarting tomcat resolves his issue,

I'm really very poor in Tomcat I've tried searching documentation related to tomcat but all those were vast, I need short and useful documentation for System Administrator only like functionality of Apache-tomcat and precautions measures to take etc.
 
Old 02-22-2013, 08:52 AM   #11
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,218

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by amolmistry View Post
Hello,
TB0ne, you are absolutely correct, but the thing is at least we have to give them rough solution since restarting Tomcat resolves issues then what precautions has to take from their end so that we do not have to restart the tomcat.
No, you DON'T have to give them a rough solution. You are the host...you are providing a server with Tomcat. It's not your responsibility to make sure they write good code, and know how to debug it.

To put it another way: if you were a car dealer, would you also have to teach people to drive, and give them basic lessons about being a mechanic? No...you sell the car, they USE the car.
Quote:
Again from my end I'm not cleared that what exactly is happening if restarting tomcat resolves his issue,

I'm really very poor in Tomcat I've tried searching documentation related to tomcat but all those were vast, I need short and useful documentation for System Administrator only like functionality of Apache-tomcat and precautions measures to take etc.
Again, the issue is that their code is malfunctioning. They wrote bad code, and need to debug/test/fix it...there's no other solution. There are THOUSANDS of sites that give you tips on how to debug code, and Tomcat testing tools, some of which are on the Apache Tomcat page
http://tomcat.apache.org/tools.html

...Eclipse being one of them. In my first reply, I gave you a link which addressed the error you were getting. Did you read/follow it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat Issue (multiple tomcat is running) vignesh4sh Linux - Server 4 02-04-2013 01:16 AM
tomcat issue fernfrancis Linux - Newbie 10 04-28-2010 07:36 AM
Issue with tomcat ? your_shadow03 Linux - Newbie 1 12-15-2009 01:37 AM
Tomcat 5 issue varun2109 Linux - Server 0 10-06-2009 07:40 AM
Tomcat Issue varunbihani Linux - General 0 12-06-2004 05:35 AM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration