File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting Tomcat from Eclipse Problem

 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Mourouganandame Arunachalam
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is the startup messages that I am referring to.
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am NOT getting those startup messages. What do I need to do to get them again?
 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
get and post here the logging file content from your tomcat installation folder

../conf/logging.properties

 
Rachel Kozlowski
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the logging.properties file:

 
Mourouganandame Arunachalam
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic