[BlueOnyx:01877] Tomcat / WAR file initialization?

Jeff Jones jeffrhysjones at mac.com
Thu Jul 30 06:16:16 PET 2009


Well here it is - my new question!

One of the most exciting (yes I find all of this exciting!) things  
about BX over BQ - is the fact that we now have Tomcat server and Java  
preloaded. I'd been pretty pleased about this, but problem was - I  
never had a reason to test it out.

Until yesterday!

A friend of mine asked me if it was possible for me to fire him up a  
website on one of our shared BX servers - no problem I thought.  
However, what he 'forgot' to tell me, was that he was interested to  
run a Java based web app called 'Railo'. Now Railo is basically a free  
version of Adobes 'Coldfusion' server - it seems that most of CFML is  
compatible with Railo. This is quite interesting for me also as I have  
a few customers that are running CFMX servers - so now I have the  
possibility to run Coldfusion apps on BX server.

There are two types of install for Railo, first is 'classic' install -  
I didn't really want to do that, as I wasn't sure how that would work  
with virtual sites etc. The other option is WAR file.

And that's when I started getting excited. I knew that there was an  
ability to simply 'pop' in a WAR file with BX now in the Virtual Site.

So I activate JSP on the site, which fires up Tomcat on the server. I  
then go to the newly created virtual server, and paste in the URL for  
the WAR file. The progress bar only gets to 5%, but then after a while  
the app appears to 'import' OK.

The problem is (you guessed it) that although it 'appears' to import,  
it doesn't seem to start.

I checked out the catalina.out file and get the errors below - I get  
these when importing the WAR - it seems like for some reason, many of  
(but not all) the files / folders are missing from the WAR. The 'File  
not found' errors are trying to get files that don't exist in the file  
structure.

Perhaps there is a problem 'extracting' the files? If it were a  
permissions issue, surely there would be no files there at all?

And like I said - when I import the WAR using the URL - it gets to 5%  
and then 'completes' - I'm not sure if this is normal.

I can get into Tomcat admin / manager - which is running OK, although  
there is no mention of this Railo app in there.

Any ideas / suggestions for troubleshooting this one?

Cheers (Errors below - I have bolded stuff I think may be important)

Jeff

 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Jul 28, 2009 4:56:20 PM org.apache.catalina.core.AprLifecycleListener  
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/i386/ 
client:/usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/i386:/usr/lib/jvm/ 
java-1.6.0-sun-1.6.0.7/jre/../lib/i386:/usr/java/packages/lib/i386:/ 
lib:/usr/lib
Jul 28, 2009 4:56:20 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 28, 2009 4:56:20 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 558 ms
Jul 28, 2009 4:56:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 28, 2009 4:56:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jul 28, 2009 4:56:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 28, 2009 4:56:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
railo-server-root:/home/.sites/39/site9/web/railo/WEB-INF/lib/railo- 
server
Tue Jul 28 16:56:21 BST 2009-935 Start CFML Controller
===================================================================
SERVER CONTEXT
-------------------------------------------------------------------
- config:/home/.sites/39/site9/web/railo/WEB-INF/lib/railo-server/ 
context
===================================================================

java.io.IOException: No such file or directory
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:883)
	at  
railo 
.commons.io.res.type.file.FileResource.createFile(FileResource.java:243)
	at  
railo 
.runtime 
.config.ConfigServerFactory.newInstance(ConfigServerFactory.java:55)
	at  
railo 
.runtime.engine.CFMLEngineImpl.getConfigServerImpl(CFMLEngineImpl.java: 
134)
	at railo.runtime.engine.CFMLEngineImpl.<init>(CFMLEngineImpl.java:86)
	at  
railo.runtime.engine.CFMLEngineImpl.getInstance(CFMLEngineImpl.java:101)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at  
railo.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java: 
554)
	at  
railo.loader.engine.CFMLEngineFactory.getCore(CFMLEngineFactory.java: 
273)
	at  
railo 
.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:215)
	at  
railo.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java: 
170)
	at  
railo 
.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:71)
	at  
railo 
.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:110)
	at railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:26)
	at  
org 
.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 
1139)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
966)
	at  
org 
.apache 
.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4230)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 
443)
	at  
org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java: 
700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jul 28, 2009 4:56:24 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at java.net.Socket.<init>(Socket.java:366)
	at java.net.Socket.<init>(Socket.java:180)
	at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
java.io.FileNotFoundException: /home/.sites/39/site9/web/railo/WEB-INF/ 
lib/railo-server/patches/3.1.0.022.rc (No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
	at  
railo 
.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:221)
	at  
railo.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java: 
170)
	at  
railo 
.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:71)
	at  
railo 
.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:110)
	at railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:26)
	at  
org 
.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 
1139)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
966)
	at  
org 
.apache 
.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4230)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 
443)
	at  
org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java: 
700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jeff Jones
jeffrhysjones at mac.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20090730/29027046/attachment-0003.html>


More information about the Blueonyx mailing list