Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 01, 2015 11:14 am 
Offline
Newbie

Joined: Wed Jan 28, 2015 5:03 am
Posts: 2
Hi,
I used apt get to install jdk7, tomcat7, and mysql server.
My web app deploys fine and running good.

My first problem is with logging: during initialization of tomcat I get "ERROR Unable to create file ../logs/logfilename.log" java.io.IOException: No such file or directory, and my log file isn't being created.
I'm new to linux so I can only guess that the problem is tomcat's permissions to write to the location that the application is running from.

The other problem is that I have set the /etc/default/tomcat7 options to allow remote debugging of tomcat, and I can't connect. My debugger hangs.

What am I doing wrong?

Thanks.


Top
   
PostPosted: Sun Feb 01, 2015 1:05 pm 
Offline
Junior Member

Joined: Wed Nov 18, 2009 12:27 am
Posts: 28
It might be a permissions issue, these look promising from Google:

http://unix.stackexchange.com/questions ... same-group
http://stackoverflow.com/questions/2587 ... -in-log4j2

For debugging, I'm asuming you have a firewall running and the port isn't open. I don't know what your client Os is but if it has telnet then try "telnet yourlinodeip thedebugportfortomcat". If it hangs then it's a firewall issue somewhere, your side, your ISP, your Linode

To get out of the telnet session in case it works, Ctrl+] then "close".


Top
   
PostPosted: Mon Feb 02, 2015 3:37 am 
Offline
Newbie

Joined: Wed Jan 28, 2015 5:03 am
Posts: 2
Thank you for your reply.

I managed to get the log to be written by directing it to a folder that tomcat can write to, thus bypassing the permission issue.

The telnet session is "closed by foreign host". That is not too important as it's only for very rare cases where the actual running environment gets my application to a point that it didn't come to while testing it on my local machine.
The specific issue didn't reproduce so I'm good for now.

Thanks very much.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group