LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 Yesterday, 07:55 PM   #46
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 70

Rep: Reputation: 0

Example from my downloaded zip file:
Code:
$ unzip -l  apache-tomcat-11.0.0-M19.zip | grep index.jsp | grep ROOT
    12458  09 04 24 12:06   apache-tomcat-11.0.0-M19/webapps/ROOT/index.jsp
$ pwd
/home/murugesandins/apache-tomcat-11.0.0-M19/webapps/ROOT
$ fl index.jsp | egrep -v "^$";echo $?
1
$# Initially https://127.0.0.1/ was reporting => HTTP Status 404 – Not Found
$ ls | grep -i index.jsp
-rwxrwx---+ 1 murugesan openssl 12458 May  5 04:13 index.jsp.Original
-rwxrwx---+ 1 murugesan openssl 12478 May  8 15:54 index.jsp.backup01
$ type cp
cp is aliased to `/usr/bin/cp -i '
$ cp index.jsp.backup01 index.jsp
$# after this https://127.0.0.1 reporting valid content of => Apache Tomcat/11.0.0-M19
Validate your index.jsp file locations/permissions/... at your tomcat webapps directory
including contents of index.jsp (if you have modified)

Last edited by murugesandins; Yesterday at 07:57 PM. Reason: Removed old content => you need to have index.jsp
 
Old Today, 04:10 AM   #47
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 70

Rep: Reputation: 0
Quote:
HTTP Status 500 – Internal Server Error
Type Exception Report
Message org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.lang.ClassNotFoundException exception happens when related .class file not found by java or related CLASSPATH not having required jar file/related directory environment variable.
shutdown tomcat
if you have done make clean(development oriented) perform make again and execute related script(Example: . ~/.bashrc) to set required environment variables again.
After that start tomcat
We can have these steps at automated script(always) if required before starting tomcat.
 
Old Today, 04:10 AM   #48
sag2662
Member
 
Registered: Sep 2022
Posts: 73

Original Poster
Rep: Reputation: 0
Not sure, sometimes it seems to work and sometimes not.
 
Old Today, 04:16 AM   #49
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 70

Rep: Reputation: 0
Quote:
Not sure, sometimes it seems to work and sometimes not.
Let me describe a sample action by the client using internet banking:
1. login => (Eg: access index.jsp)
2. create a session id at client coockies and always validate the cookie timeout periods.
3. Intermediately assume that client is donating 100.00 INR to prime minister to get a refund for last 10 months using that current session id.
4. Developer of that page invoking a page which is dependent on NRF.jar file which is not set at CLASSPATH environment variable.
Due to this 500 error reported at client side.
5. Developer handled to remove/reset the cookie at client and server side asking the client to re-login again.
I feel that the same condition applicable to your working/non-working exceptions at tomcat.
Hence I have informed to include related CLASSPATH and all tomcat environment variables at start_tomcat.sh (set all, and then call startup.sh if tomcat not at execution mode inside current host including that port number not in use by any other apps)

Following comment not related to this query.
However I am sharing some automated script at localhost whenever I login at 127.0.0.1:
a) Start bash.exe to check battery percentage and if it is greater than 98% open notepad.exe and provide alert to switch off battery
b) start putty.exe at 127.0.0.1 if not at execution mode now.
c) start firefox.exe if not at execution mode now.
d) exit from this automated script
e) execute above automated script using startup.cpp C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\STARTM~1\Programs\Startup\startup.exe
Hence I have informed perform automated script to invoke startup.sh after setting all requirements for tomcat/any servers.
you can understand => ALL requirements...using lsof /-d /-f /ps/.../sudo required commands using automation at any OS.

Last edited by murugesandins; Today at 04:21 AM. Reason: comments on automation
 
  


Reply



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
LXer: How to set up Apache webserver proxy in front of Apache Tomcat on Red Hat Linux LXer Syndicated Linux News 0 10-01-2018 01:32 PM
apache webserver and tomcat fachhoch@gmail.com Linux - Newbie 1 05-11-2012 09:40 PM
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) sreejithp Linux - Server 1 12-24-2010 06:46 AM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration