Ubuntu 16.04 and Tomcat8 fail

Greetings All, 

In anticipation of the release of 1.9, I thought I would take the opportunity to rebuild my testing server using  Ubuntu Server 16.04 LTS, Tomcat 8 and OVPMS 1.8.1.  I figured I'd get the groundwork out of the way early, only needing to deal with the 1.9 upgrade later.  Does anyone know why this combination might fail?  I've been able to get to the <server>:8080 Tomcat8 default page fine, but get a Tomcat 404-openvpms error when trying to access the webapp.  I've started from scratch and followed my install notes for 1.7 (cross-checked with the official 1.8 install document) but no joy.  I'm just installing the setup database for starts. Is there a known problem here I'm not aware of?  I've really been going round and round with this.

----------------------------

OVPMS 1.8.1 (stock version)

MySQL 5.7.13

Open-jdk 1.8.0_91

Tomcat 8.0.32 

mysql-connector-java-5.1.39

----------------------------

Thanks,

Sam 

Comment viewing options

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

Re: Ubuntu 16.04 and Tomcat8 fail

Did the openvpms.war file unpack successfully in <TOMCAT_HOME>/webapps?

Are there any errors in <TOMCAT_HOME>/logs/openvpms-full.log?

 

Re: Ubuntu 16.04 and Tomcat8 fail

Hi Tim,

Looks like the webapp expanded correctly and is all owned by user tomcat8... and here is the log from the latest attempt. 

Thanks..

 

AttachmentSize
openvpms-full-snip.txt 18.17 KB

Re: Ubuntu 16.04 and Tomcat8 fail

Tim...

I don't have OpenOffice installed yet, although have all of the default database setup completed, webapp is installed and document templates installed.  In 1.7 I did the OpenOffice install once I saw the webapp was accessible.  Is there something in 1.8 that requires OpenOffice to be present at this point?  I see that your install notes put OpenOffice before the first test.

Sam

Re: Ubuntu 16.04 and Tomcat8 fail

Its a bug in Tomcat 8.0.32.

The relevant log entry is:

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 3
	at java.lang.String.charAt(String.java:658)
	at org.apache.catalina.loader.WebappClassLoaderBase.filter(WebappClassLoaderBase.java:2780)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1253)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)

This is an instance of https://bz.apache.org/bugzilla/show_bug.cgi?id=58999

It has been fixed in subsequent releases.

Re: Ubuntu 16.04 and Tomcat8 fail

Fantastic...

Thanks Tim.  I'll wait for an update to percolate to the Ubuntu repositories since they split the Tomcat install among several directories.  Or maybe I can get by with applying the patch.  Thanks very much for this.  It seemed like something was wrong somewhere...

Sam

Re: Ubuntu 16.04 and Tomcat8 fail

I have seen a post where the problem was resolved by downgrading to 8.0.26.

Re: Ubuntu 16.04 and Tomcat8 fail

8.0.26 seems to have its own issues.  It won't install.  The issue may be related to it playing badly with open-jdk as reported in a few places. Looks like 26 and 32 are the only Ubuntu deb packages available so far.  At least I know where the problem is and will return to it as the 1.9 release gets closer.  I can always do a manual install as I did to get tomcat7 to the minimum version for 1.8... but I'd like to avoid that as it breaks easy apt-get tomcat upgrades in the future.

Thanks for your help on this...

Sam 

 

Syndicate content