java - Deployment of my application in existing tomcat -
i want deploy web application in real tomcat 6 server uses other applications. problem is, when put war-file in webbapps, error in log file , error 404:
java.lang.unsupportedclassversionerror: metier/utilisateurs/compte : unsupported major.minor version 51.0 (unable load class metier.utilisateurs. compte) @ org.apache.catalina.loader. webappclassloader.findclassinternal( webappclassloader.java:2822)...
i googled , found there no compatible jdk , compiler of jsp.
my question is: can deploy application in different tomcat (7) server , use 2 tomcat in same server? tried when start new tomcat (tomcat7/bin/startup), server starts old tomcat automatically!
you compiled war using java 7 , trying run inside tomcat 6 java 6. configure tomcat 6 point java 7 installation , should work there well.
also, possible have 2 tomcats running on same machine, on different ports. if this, should use load balancer or proxy in front distribute requests. however, using 2 different versions of container on same machine run same application bit unusual.
regarding fact starting 1 tomcat starts other one, due fact haven't configured it's catalina_home , checks usual locations tomcat , finds other one.
see: https://tomcat.apache.org/tomcat-7.0-doc/running.txt - advanced configuration - multiple tomcat instances
Comments
Post a Comment