aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Starting Tomcat from Eclipse Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Starting Tomcat from Eclipse Problem" Watch "Starting Tomcat from Eclipse Problem" New topic
Author

Starting Tomcat from Eclipse Problem

Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Hi!

When I start my Tomcat from Eclipse nothing appears in the console.

I used to get startup messages, but I no longer get anything. Any suggestions?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You mean when you start up tomcat you get message like this

but after that "console" prints nothing, Have you tried out some System.out.println() statement in your deployed web app ?

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Rachel Kozlowski wrote:Hi!

When I start my Tomcat from Eclipse nothing appears in the console.

I used to get startup messages, but I no longer get anything. Any suggestions?


After you start tomcat from Eclipse, does the server running? Can you able to access the server?


Mourougan
Open Source leads to Open Mind
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Yes, that is the startup messages that I am referring to.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

If you are getting start up message like that, it means the console printing the Tomcat logs, now you just need to deploy some war file successfully and print out some strings on to console to make sure its printing values.
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
I am NOT getting those startup messages. What do I need to do to get them again?
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Also, when I try to run my web application I am getting the following:

The requested resource (/ReportingSuite/report/dashboard/load) is not available
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

OK, First make 'Console' view visible, by using this command:
Alt + Shift + Q, C
Now If you had configured Tomcat, successfully in Eclipse, then start using 'Server' view start 'Tomcat', And If status of tomcat server is "Running", then you must see the console with messages.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Rachel Kozlowski wrote:
The requested resource (/ReportingSuite/report/dashboard/load) is not available

that may be because of wrong URL entered OR the application is not at all get deployed.
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Sagar Rohankar wrote:OK, First make 'Console' view visible, by using this command:
Alt + Shift + Q, C
Now If you had configured Tomcat, successfully in Eclipse, then start using 'Server' view start 'Tomcat', And If status of tomcat server is "Running", then you must see the console with messages.


I did what you stated above and it says that the operation is unavailable please select the name of a method. Binary methods and annotations are unavailable.

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Sagar Rohankar wrote:
Now If you had configured Tomcat, successfully in Eclipse, then start using 'Server' view start 'Tomcat', And If status of tomcat server is "Running", then you must see the console with messages.


Provided you have not modified any logger level in ../conf/logging.properties
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
I have not touched logging.properties, truthfully (I did not know it existed). Something in my configuration must be incorrect. I will recheck my configuration settings.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Rachel Kozlowski wrote:
Sagar Rohankar wrote:OK, First make 'Console' view visible, by using this command:
Alt + Shift + Q, C
Now If you had configured Tomcat, successfully in Eclipse, then start using 'Server' view start 'Tomcat', And If status of tomcat server is "Running", then you must see the console with messages.

I did what you stated above and it says that the operation is unavailable please select the name of a method. Binary methods and annotations are unavailable.

Other way, Window -> Views -> Console
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Yes, I pulled up Windows - View - Console and Started Tomcat. Nothing appears in the console when I start Eclipse including



I must have unset some setting in Eclipse that prints Tomcat logs, where would I find this setting and reset it?

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
get and post here the logging file content from your tomcat installation folder

../conf/logging.properties

Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
this is the logging.properties file:

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Ok. You local logging properties is fine.

Can you check the following in your eclipse?

right click on tomcat instance in the project explorer or package explorer ---> Run as ---> Run Configurations ---> select Apache tomcat from the list --> in the right panel, click on "common" tab, and check "Allocate Console (necessary for input) checkbox and click apply.

And then start your tomcat server from the servers list. You should get the logs on the console window.
Rachel Kozlowski
Ranch Hand

Joined: Jan 14, 2009
Posts: 40
Thank you for your assistance.

I have done as you have asked and found the correct tab and Allocate Console was already checked. So I unchecked and clicked apply and then I rechecked it and clicked apply. So Allocate Console is now checked then I started Tomcat. The start messages do not appear.

However, System.out.println output does appear when I attempt to pull up the application.

Also errors appear, I am getting an error java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compiler/IProblem;
net.sf.jasperreports.engine.design.JRJdtCompiler$2.acceptResult(JRJdtCompiler.java:418)

I have been trying to track this down in a different post, they seem to think that I have two Jasper Report jar files that are attempting to use a class and I have been having a very hard time finding which jar files are doing this.

I honestly do not know what happened to my start up messages and this may sound unusual, but I think that it has something to do with the jar files in my project. The startup messages used to be present when I would start Tomcat from within Eclipse, but they are not present any longer.
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
It's looks weird why you don't see only the start-up messages. ...

Let me try other possibilities and see is there any other way to help you out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Tomcat from Eclipse Problem