Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error logging in Java web service  RSS feed

 
Mahita Ande
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a java web service built on jax-ws. This web service is installed on a Unix server and runs as a background process. I start the process using the java command for the .jar file. However after running for sometime the service stops running automatically. It appears that either there is an error or some other process is l killing web service process. I do not have a way to say if the web service process stops because of an error. Could you please suggest how I can log errors that causes the service to stop in a java web service hosted on a Unix server.

Thank you,
Mahita
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pass this in as a -D parameter when starting your background process : com.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true
 
Mahita Ande
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
Could you please let me know the location of the log files which contain these errors.

 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out stream which is stdout. Therefore if you put a '>' in your command line that invokes the background process , you can specify a file destination to capture the output.

I'm being intentionally ambiguous here because this is common system knowledge which you should already know. Use Google if you need help, or take a class in Java at your local community college for more information.
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your web service made as web application? Shouldn't it be running on an app server like Tomcat?

How are you starting your service?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!