Hi Roy,
RoyPorter wrote:
Rob Hills wrote:
Question 2 - I use the Tomcat Maven plugin reasonably successfully on my
dev Windows server and anticipate using it to deploy to staging and
production Tomcat servers on linux boxes with fewer problems - there's a
know issue with redeploying apps to Tomcat on windows boxes that I've
not yet got sorted out - to do with Tomcat/Windows not letting go of jar
files, but that won't bother you.
Are you talking about the Permgen out of memory issue when doing redeploys?
If so then I have the same issue with Tomcat under Linux.
No, I had Permgen as a separate issue, specifically with Maven. I
googled that and found a solution fairly quickly. I use Eclipse and
there are lots of Eclipse-specific fixes for that issue, but they all
tweak the memory settings for the JVM so they should be applicable
globally. A quick google for maven + permgen should turn up some useful
links.
Likewise I haven't had time to sort it out, initial investigations led to
the possibility that it was Commons Loggings/Log4j that was at fault, but I
haven't had time to try this out. I did find a dummy Commons Loggings/Log4j
API that imitated them, but actually used SL4J. This was going to be my next
port of call.
Nathan, sorry to hijack your thread, but this could be relevant....
In the logs from my working AppFuse app on Tomcat, the first thing that
touches the logs is actually an SQL trace (I have Hibernate SQL logging
turned on) where it looks up Users and Roles. That would lead me to
check carefully if the DB connection is working OK. It would be
worthwhile making sure you've got Hibernate SQL logging switched on -
I'd have thought you'd see some kind of JDBC exception in the logs
anytime your app was having trouble hitting the DB, but you never know.
I have enabled Hibernate SQL logging by including:
<hibernate.show_sql>true</hibernate.show_sql>
in the <properties> area of my profile for my app.
HTH,
Rob Hills
Waikiki , Western Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]