• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 7 is unresponsive

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 401
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 7125
    184
    Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
    reply
      Bookmark Topic Watch Topic
    • New Topic