Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat 7 is unresponsive  RSS feed

 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi




Having successfully created a hello.war with ant's buildfile as above.the same war file was tried for
deploy through tomcat7 and tomcat7w
which has got the following propertis
1)general
2)logon
3)logging
4)java
5)startupi
6)shutdown

all the above properties were fille up in the apache-tomcat-properies window that was obtained on
the writing the command line as below


C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\bin>tomcat7w

after this i just wanted to ececute the hello.war for dploying as below


C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\bin>tomcat7 exec:hello.war

But unfortunately no web page appeared though  internet was on all the while.


Where do i can correct to fetch the results

Thanks
As
CRMK

 
Knute Snortum
Sheriff
Posts: 3940
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked in Tomcat's log files for errors?  Do you have logging in your web app?
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:Have you looked in Tomcat's log files for errors?  Do you have logging in your web app?


Hi
The webapps for the above contains the following details along with the java prg.under src as folloes


Hope this suffices for  the immediate confirmation as to where the error exists.

Please help me if this is ok if not a very simple example withe war file that can be toncatted successfuuly will be very favourable.
There is no tomcat-logger specific  excepting that is shown in properties list as above

Thanks
CRMK


 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:Have you looked in Tomcat's log files for errors?  Do you have logging in your web app?



Hi
The web applcation and other details were  totally retried and sucesfully obtained pet.ear that was once more deployed at Tomcat7.The following was the resut
***************
Server  Error404 - File or directory not found.
The resource you are looking for might have been removed,
had its name changed, or is temporarily unavailable.
*************************
Please help if you have any other example to demo
Thanks
AS
CRMK
 
Knute Snortum
Sheriff
Posts: 3940
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I'd recommend:

1) Completely stop your app
2) Go to C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\logs and remove all files
3) Restart your app and run until you hit an error or it becomes unresponsive
4) Look at the log files in the logs directory.  They should contain useful information about what is going wrong.

As a side note, why do you have Tomcat7 in the Maven bin in the Java bin?
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:This is what I'd recommend:

1) Completely stop your app
2) Go to C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\logs and remove all files
3) Restart your app and run until you hit an error or it becomes unresponsive
4) Look at the log files in the logs directory.  They should contain useful information about what is going wrong.

As a side note, why do you have Tomcat7 in the Maven bin in the Java bin?


Hi
  Subsequent to changes made The follwing is the result of yet another new war file viz chapt07.war
The mehod in he properties file in tomcat is removed.jvm is now put in place of exec.


Please note that though tomcat7 started with full flavour,it is yet to render any web page as it is halted as above
probably some more  commands are to be furnished(my guess only)
This is for your perusal  wtth thanks any comments please
As
CRMK

 
Knute Snortum
Sheriff
Posts: 3940
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:
1) Completely stop your app
2) Go to C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\logs and remove all files
3) Restart your app and run until you hit an error or it becomes unresponsive
4) Look at the log files in the logs directory.  They should contain useful information about what is going wrong.

Did you do this?  What did you find?
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:
Knute Snortum wrote:
1) Completely stop your app
2) Go to C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\logs and remove all files
3) Restart your app and run until you hit an error or it becomes unresponsive
4) Look at the log files in the logs directory.  They should contain useful information about what is going wrong.

Did you do this?  What did you find?


Hi

Meticulously removed and made logs folder empty.
Them using jvm and starting the chap07.war by tomcat7
Results as under:

The local-host :server3009 as shown  below is halting at the commandline and the logs folder simply opened a text file as shoen below without any matter

Thanks for  this output sofar.since logs folder iis able to open a txt file
As
CRMK











 
Knute Snortum
Sheriff
Posts: 3940
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like Tomcat is starting without errors.  Can you start the Tomcat manager from your browser?
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:It looks like Tomcat is starting without errors.  Can you start the Tomcat manager from your browser?


Hi
having opened the webapps folder(where i had placed  the chap08.war and after starting the tomcat7 and
downloaded from the  the the extracted  folder chap08(which is a nice thing that tomcat7 did at webapps
and saved the start prg .than im my commandline i simply wrote

C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\bin>tomcat7 start:chap8.war

The results as under
**********************************
[2017-05-18 08:56:35] [error] [ 3640] Unrecognized cmd option start:chap8.war
[2017-05-18 08:56:35] [error] [ 3640] Invalid command line arguments
[2017-05-18 08:56:35] [error] [ 3640] Commons Daemon procrun failed with exit va
lue: 1 (Failed to parse command line arguments)
****************************

So in the mids of of such obtacle what is the easiest way to execute a  jsp file atleast either.


Thanks
As
CRMK
 
Tim Moores
Saloon Keeper
Posts: 3828
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Program Files\java\bin\apache-maven-3.3.9-bin\bin\Tomcat 7.0\bin>tomcat7 start:chap8.war

This is a profoundly weird directory path. What on earth is Maven doing inside the JRE installation? And what is Tomcat doing inside of the Maven installation? What is the "tomcat7" executable you're using?
 
Knute Snortum
Sheriff
Posts: 3940
92
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, let's backup and try this:

Start the Tomcat Monitor
  • at the command line, cd to the tomcat bin directory
  • type: tomcat7w (note the "w" at the end)


  • Check the status of the Tomcat7 service
  • double-click the Tomcat7 Monitor icon in the system tray.  It has "play" button with a circle around it.
  • click the General tab
  • if the status isn't "started", click the start button
  • in your web browser, type: http://localhost:8080/
  • you should see the Apache Tomcat page


  • Tell me how far you get through this.

    If you don't get to the displaying the Apache Tomcat page, go to https://tomcat.apache.org/tomcat-7.0-doc/ and read the first three guides.
     
    Comal Rajagopalaratnam Muthukumar
    Ranch Hand
    Posts: 266
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Knute Snortum wrote:Okay, let's backup and try this:

    Start the Tomcat Monitor
  • at the command line, cd to the tomcat bin directory
  • type: tomcat7w (note the "w" at the end)


  • Check the status of the Tomcat7 service
  • double-click the Tomcat7 Monitor icon in the system tray.  It has "play" button with a circle around it.
  • click the General tab
  • if the status isn't "started", click the start button
  • in your web browser, type: http://localhost:8080/
  • you should see the Apache Tomcat page


  • Tell me how far you get through this.

    If you don't get to the displaying the Apache Tomcat page, go to https://tomcat.apache.org/tomcat-7.0-doc/ and read the first three guides.


    Hi
    Subsquent to revamping the location of Tomcatas well as ant  to ease its grab for an easy and simple class path while
    executing its task,thus replaing the are cogested location,the tomcat7monitor was initialised the output is
    quite good with full documented guidelines and the results are s under for my original try target to deploy an executable jar created by bt ant at its new location
    For your perusal with thanks
    As
    CRMK










     
    Knute Snortum
    Sheriff
    Posts: 3940
    92
    Chrome Eclipse IDE Java Postgres Database VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I don't know what's causing the error, but you don't have to start tomcat at the command line.  You start it with the Tomcat Monitor, then check it by entering http://localhost:8080/ in your browser.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!