I’m attempting to serve another app via Servoy’s tomcat.
-
Create new folder in servoy/server/ folder:
servoy/server/newapp -
Add virtual host to servoy/server/conf/server.xml:
<Host name="newapp.local" appBase="newapp"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="newapp_access_log." suffix=".txt"
pattern="common"/>
</Host>
I’ve set a static DNS entry for newapp.local - this is working fine.
Then, I’ve tried both:
-
Adding a WAR file to newapp and restarting Tomcat
Tomcat creates newapp-extWEBAPP in servoy/server
newapp_access.log is created
Accessing newapp.local:8080 resolves, but gives a blank page - no html, no body…nothing. Calling any of the jsp pages directly still nothing. -
Adding extended web app in newapp does the same (except no -extWEBAPP folder created, of course.). Even try adding plain-jane index.html - nothing. Accessing jsp files directly…nothing.
There are no errors logged in access log or server error log.
Anyone have any experience trying to get Servoy’s tomcat to serve other webapps or JSP pages?
Anything I put in server/webapps/ROOT will run fine.
Any tomcat / servoy guru’s running other apps on servoy’s tomcat? hints? pointers? help?
Thanks,
NCM
FSCI
EDIT - also trying Context Path to make newapp its own web application, yet part of the localhost domain that is servoy:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
<Context path="/lib" docBase="../../lib"/>
<Context path="/plugins" docBase="../../plugins"/>
<Context path="/beans" docBase="../../beans"/>
<Context path="/lafs" docBase="../../lafs"/>
<Context path="/newapp" docBase="newapp"/>
</Host>
I’ve tried placing the newapp folder at:
servoy/server/webapps/ROOT/newapp - this should be the right one for docbase=“newapp” , right?
servoy/server/webapps/newapp
servoy/server/newapp
In all cases, I get a 404 error.
EDIT -
OK, no more blank pages with:
<Host name="newapp.local" appBase="newapp"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="" debug="1"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="newapp_access_log." suffix=".txt"
pattern="common"/>
</Host>
BUT get a 404 -The requested resource (/Login.jsp) is not available
I’ve put the newapp folder (with Login.php inside) in
all of the above mentioned locations AND
servoy/server/newapp/ROOT (newapp folder with jsp files renamed as ROOT)
Why oh why can I not server up a simple jsp file outside of the servoy ROOT folder (ie, a seperate web app) .
It has to be something obvious to someone used to configuring tomcat…or ist he Servoy tomcat somehow disallowing all other web apps from running?