Closed GoogleCodeExporter closed 9 years ago
Looking at the code, it seems this would happen only if it was not finding the
configuration file. We could certainly add a null check to this, but I guess we
have to hink about what we want to happen if it can't find the config file,
because that probably means it can't find any config files (like xmpp config)
and therefore can't really run.
The file path comes from the XmlConfigParser constructor, called in MainServer,
line 60. It is gotten using that getRealPath() method that I believe you wrote
specifically to handle this issue of having different path in local vs. tomcat
versions.
I also know from prior experience, that tomcat can get a different relative
path depending on the current path in your shell when calling the tomcat
startup script. For example, I used to have a problem when I ran the tomcat
startup script from a script file inside the LASAD directory, because it would
then look for files in that LASAD directory instead of in the webapps folder.
Again though, I thought we had resolved these issues with the getRealPath()
call, so I'm not sure exactly how to proceed on this other than to test where
it is looking for the files.
Original comment by tdragon1...@gmail.com
on 11 May 2013 at 2:02
Good points. Had forgotten some of them... maybe it is because this time tomcat
started relatively from somewhere else. Will have a look and also put some
debug statement to check where it is looking.
Original comment by mavrikis@gmail.com
on 11 May 2013 at 2:14
Sorry mantesat I should have taken the issue somehow ended with you.
This was an issue probably to do with the location where tmcat is launched from
... there is conflicting evidence as there were also a couple of webapps
running somehow accidentally and leaks floating about until I restarted
everything. Anyway closing this issue.
Original comment by mavrikis@gmail.com
on 11 May 2013 at 3:51
Original issue reported on code.google.com by
mavrikis@gmail.com
on 11 May 2013 at 1:44