Hi,
I'm trying to install the php java bridge in a tomcat docker container
(tutum/tomcat : https://registry.hub.docker.com/u/tutum/tomcat/)
I placed the JavaBridge.war in /tomcat/webapps but I get a 404 when I try
to visit the JavaBridge page and this error in the
tomcat/logs/catalina.2014-09-16.log :
[...]
16-Sep-2014 02:52:13.576 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDi
rectory Deploying web application directory /tomcat/webapps/JavaBridge
16-Sep-2014 02:52:14.169 INFO [localhost-startStop-1]
org.apache.jasper.servlet.TldScanner.scanJars A
t least one JAR was scanned for TLDs yet contained no TLDs. Enable debug
logging for this logger for
a complete list of JARs that were scanned but no TLDs were found in them.
Skipping unneeded JARs duri
ng scanning can improve startup time and JSP compilation time.
16-Sep-2014 02:52:14.230 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.star
tInternal Error listenerStart
16-Sep-2014 02:52:14.238 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.star
tInternal Context [/JavaBridge] startup failed due to previous errors
16-Sep-2014 02:52:14.252 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDi
rectory Deployment of web application directory /tomcat/webapps/JavaBridge
has finished in 676 ms
[...]
And there is some detail in tomcat/logs/localhost.2014-09-16.log :
[...]
16-Sep-2014 02:24:53.548 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.list
enerStart Exception sending context initialized event to listener instance
of class php.java.servlet.
ContextLoaderListener
java.lang.IllegalStateException: Cannot access /java within the current
web application. Please expl
ode it: Unzip the application .war file into a directory and deploy the
directory instead.
at php.java.servlet.ServletUtil.getRealPath(ServletUtil.java:77)
at
php.java.servlet.ContextLoaderListener.createPhpFiles(ContextLoaderListener.java:309)
at
php.java.servlet.ContextLoaderListener.init(ContextLoaderListener.java:239)
at
php.java.servlet.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:160)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4751)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5175)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1071)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1722)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[...]
I tried unzipping the war and redeploying but had the same error.
my google fu does not seem to help me and i am not too familiar with java,
so if anyone has an idea :)
thanks,
nico
|