I am having trouble deploying a war file. In my solution I reference an external database in which there is a table without a primary key. In Servoy developer I put the row_ident mark on the first column which is unique. In developer this works fine and I can browse the data without any issues.
However, no matter what I try, I can’t get the WAR file to successfully reference the same database on the server (the database is accessible from the server through dbVisualizer). I define my database properties using the servoy_server.properties file using DBI files.
If i include a dummy form with a reference to the table TOMCAT refuses to deploy my WAR file saying it can’t find the database. If I don’t include the form it will not add the database reference and I can add it manually in Servoy Server Admin console but then it will complain about the table not having a primary key… Any suggestions?
so you didn’t add “bronboek” as a server definition when making the WAR?
What do you mean with “automatically excluded” we don’t exclude anything, you have to say which servers we should export (from the developer the last export pages if you don’t choose a external servoy.properties file)
I have a servoy_server.properties file that includes a “bronboek” server definition. However, when I deploy the solution the connection seems to be missing or invalid??
Just tried that. It does not. I do get an error however. Does this ring any bells?
2019-12-12 18:45:01,454 WARN [http-nio-8080-exec-6] org.sablo.specification.WebObjectSpecification - Unknown type name ‘array’ encountered while parsing spec servoyextra-table
Pfew, finally got it to work. What I basically did is:
Switched to a new workspace
As Johan suggested, I did a WAR export (named test.war) without the active solution (uncheck “include active solution and modules”)
Instead of using the servoy_server.properties file I switched back to filling the tabs with database connections (maybe it contained properties that worked in 2019.6 but no longer did in 2019.9?, the connections were valid I checked them over and over)
Switched back to my normal workspace, did the same, this time with the active solution. NullPointer Error.
Checked DBI files checkbox, exported the WAR file and this time it worked.
Beats me. Main takeaway with deployment database connection problems: do step2 and take your solution out of the equation, it helps focus on what matters. Thanks Johan! I appreciate it.
omar:
Just tried that. It does not. I do get an error however. Does this ring any bells?
2019-12-12 18:45:01,454 WARN [http-nio-8080-exec-6] org.sablo.specification.WebObjectSpecification - Unknown type name ‘array’ encountered while parsing spec servoyextra-table
this is just a problem of a wrong spec definition in our servoy-extra component, we will fix that shortly