tomcat from intellij

 

hi anyone know why im getting a 404 page error? im running intellij and set the configuration to launch tomcat 8.

It launches the login form correctly, but when i press ok to login i get a 404 page? if i take the war file and copy and launch tomcat manually its works fine.

when i launch from within tomcat, the url does not appear correct it goes from:

openvpms/login

to

ap/1

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: tomcat from intellij

Try launching via Maven Projects -> OpenVPMS Web App -> Plugins -> tomcat7 -> tomcat:run

 

Re: tomcat from intellij

ok thx, if i use the maven install command its rebuilding my data so i have to reload it each time, how do i stop that? im not making data changes at the moment, and its not updating the data just whiping it each time.

Re: tomcat from intellij

You need to use separate databases for development and your production snapshot.

If I want to run the dev environment against a production snapshot, I load the dump into a new database e.g.:

> mysql -u openvpms -p production < dump.sql

And then run tomcat pointing to that db:

> mvn tomcat7:run -Drelease.jdbc.url=jdbc:mysql://localhost:3306/production

You can also do this within IntelliJ by right clicking on the tomcat7:run under Plugins and select 'Create openvpms-web-app [to...'. The -Drelease.jdbc.url=jdbc:mysql://localhost:3306/production is entered in the Runner -> VM Options field.

 

Re: tomcat from intellij

Awesome much appreciated

Syndicate content