Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-25 Thread Matthias Jakob
At the End, don’t leave dbConnectURLGLOBAL blank ;-) thats all ;-( Matthias Am 25.04.2014 um 01:47 schrieb Matthias Jakob ja...@ementals.de: Hi David, hi Andrew, hi there, after a remote debugging session I’ve found the problem (Remember I will use a JNDI JDBC Datasource!): In

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Matthias Jakob
Thank you David, John, Tested and found out that the first deployment on a fresh server works fine with migrations. Uninstall WAR Application, delete Tables, Install again - start - no migrations are executed ;-( Glassfish, Websphere same behavior ... Why? Confused ;-( Thank you, Matthias

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Theodore Petrosky
what is the deployment environment? what database? is the database on the same machine? what do the logs of the database say? (can you increase the logging to verbose?) at least then you would know if your app is trying to talk to the backend. migrations can not create the database. it must exist

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Matthias Jakob
Hi Theodore, thank you for your help! - WebSphere or Glassfish its the same. - Microsoft SQL Server - Remote Server - second start with deleted Tables - no connection on Startup!!?!? - Only _dbupdater and my single demo Table was deleted … No Database Drop … its already there ... ;-( Its

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread David Avendasora
Hi Matthaias, Override the migrationsWillRun method and stick a breakpoint on it. Let’s make sure that it is getting that far. Something like: @Override protected void migrationsWillRun(ERXMigrator migrator) { super.migrationsWillRun(migrator); — breakpoint here

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread David Avendasora
On Apr 24, 2014, at 9:16 AM, David Avendasora webobje...@avendasora.com wrote: Override the migrationsWillRun method and stick a breakpoint on it. Let’s make sure that it is getting that far. Umm… in your subclass of ERXApplication, in case that wasn’t clear… It probably was to you, but

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Matthias Jakob
Clear ;-) Sir! ;-) Am 24.04.2014 um 15:18 schrieb David Avendasora webobje...@avendasora.com: On Apr 24, 2014, at 9:16 AM, David Avendasora webobje...@avendasora.com wrote: Override the migrationsWillRun method and stick a breakpoint on it. Let’s make sure that it is getting that far.

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread John Huss
Are you restarting the app server or just uninstalling the war? You have to restart the server I think. On Thu, Apr 24, 2014 at 7:59 AM, Matthias Jakob ja...@ementals.de wrote: Hi Theodore, thank you for your help! - WebSphere or Glassfish its the same. - Microsoft SQL Server - Remote

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Theodore Petrosky
don’t think so. I do this all the time. are you sure you are including all frameworks when you build your app? maybe the sqlserver .jar isn’t where you think it is. On Apr 24, 2014, at 10:22 AM, John Huss johnth...@gmail.com wrote: Are you restarting the app server or just uninstalling the

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Matthias Jakob
Hi David, protected void migrationsWillRun(ERXMigrator migrator) { // TODO Auto-generated method stub super.migrationsWillRun(migrator); System.out.println(--migrationsWillRun--); } Is never called, local or in the Appserver ?? If

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-24 Thread Matthias Jakob
Hi David, hi Andrew, hi there, after a remote debugging session I’ve found the problem (Remember I will use a JNDI JDBC Datasource!): In ERXMigrator protected boolean canMigrateModel(EOModel model) { String adaptorName = model.adaptorName(); if

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-23 Thread David Avendasora
I may be incorrect, but I don’t think migrations have ever been able to *create* a database. I think you have always needed the DB to exist first, then migrations can create schemas, tables, constraints, etc. It has been a long time since I tried to start from scratch, so it is entirely

JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-22 Thread Matthias Jakob
Hi there! I’ve got a problem with my web.xml JNDI JDBC entry in Servlet Deployment and migrations. Using the web.xml entry resource-ref descriptionMS SQL Server/description res-ref-namejdbc/TEST/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth

Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations

2014-04-22 Thread John Huss
I think the migrations are run in Application.finishInitialization, but I could be wrong. So make sure you are calling super if you are overriding it. You could at ERXApplication to find where it is called. The simple solution is to turn off migrateAtStartup and just add a call to run them