Geeb

United Kingdom

What happens when you press the "history erase" button?

Maybe something good, maybe something bad ...

But you wont know ...

BECAUSE YOU'RE NOT GOING TO PRESS IT, ARE YOU!?

Apr
9
awarded Popular Question
Mar
14
comment Using Maven and Apache CXF code-gen with different endpoints in testing and production
I think what I really want is to get my head around the concept of Maven's "build profiles", but I find the documentation confusing. I was fishing for an example, really. Maybe I should go and RTFM!
Mar
14
comment Using Maven and Apache CXF code-gen with different endpoints in testing and production
Absolutely. But I was thinking that if there were any other differences between test and production it would be useful to implement different build profiles to account for this, and to see an example. In this case, with a single property changing, your provided solution would suffice.
Mar
14
comment Using Maven and Apache CXF code-gen with different endpoints in testing and production
Thanks, good tip! This would have the desired effect. But ... I was actually looking for an example of using Maven's build profiles to achieve this.
Mar
14
asked Using Maven and Apache CXF code-gen with different endpoints in testing and production
Feb
14
awarded Popular Question
Jan
2
awarded Popular Question
Dec
4
awarded Popular Question
Sep
13
answered Spring Security 3.1 Active Directory Authentication
Sep
4
awarded Teacher
Aug
16
asked Eclipse "build path" and m2e. Maven --> "Update project configuration" always re-orders my build path
May
31
comment Spring MVC, and JDBC datasources
So you're saying there isn't a way to trap an error at the init() stage of a Spring MVC servlet, so as not to dump a stack trace to the browser? This is the question I'm asking. If it isn't possible I don't have a problem with that - I would just like to know so I can get on with something else! I tried the suggestions in the link you supplied but I think the exceptions trapped here are at a later stage than init()
May
31
comment Spring MVC, and JDBC datasources
The fact that the DB is offline and the dataSource object cannot be created. I don't have control over the DB but need to account for this situation.
May
31
comment Spring MVC, and JDBC datasources
(1) I know this, but I am asking how to trap an error on the initialization of the servlet, to subsequently display a friendly error page! (2) I have no control over the database and if the DBA sees fit to take it offline I want my web-app to fail gracefully.
May
31
asked Spring MVC, and JDBC datasources
Apr
4
revised Error trapping for a missing data source in a Spring MVC / Spring JDBC web app
Fixed the problem
Apr
3
comment Error trapping for a missing data source in a Spring MVC / Spring JDBC web app
I have a feeling that something needs "decoupling" here: For my MVC app to work it depends on a data source object as it initializes. I suppose it is the presence of the data source object that allows the model part of the system (i.e. Model, View, Controller) to come into existence. But without the model's initialization the system is broken and I can't use the controller to change the view to a nice error message. I have a suspicion that the initialization of the app should not depend on the data source being available and the the data source object should be requested by the controller.
Apr
3
comment Error trapping for a missing data source in a Spring MVC / Spring JDBC web app
Yes ... as I say under normal circumstances there isn't a problem, but if the database goes down (I don't control the DB) I would like my app to fail gracefully. The fact that I noticed this messy stack trace echoed to the browser whilst I had forgotten to configure the context.conf in Tomcat is just one possible reason the connection pool could fail to hand out a data source object to my app. This is a reason for failure that is within my control to fix. But there are many reasons the DB may not be available and most are not within my control to fix.
Apr
2
comment Error trapping for a missing data source in a Spring MVC / Spring JDBC web app
I think the point I'm driving at is that it seems to me that it is the Spring container that is throwing the error in this situation, as it tries to initialize - not the code I have written and have direct control over...
Apr
2
comment Error trapping for a missing data source in a Spring MVC / Spring JDBC web app
(1) No, the cxn pool is used by other apps, so I thought best let Tomcat administer it? (2) No - I need to check this out, thanks. (3) This is actually my question - how do I trap this error?
1 2 3 4