2008 m. spalio 30 d., ketvirtadienis

Embedded JBoss on Tomcat6 with Java JDK 1.6

Several days ago I started evaluating Seam framework (http://www.seamframework.org) . Of course I found that the best application server to use with the framework is for sure JBoss AS.
That is, to follow the tutorial (http://docs.jboss.com/seam/latest/reference/en-US/html/tutorial.html) one has to install either JBoss AS or, if one preferes Tomcat, Embedded JBoss.
Our customer wants Tomcat. Thus, we must go with:

the latest Tomcat release (Tomcat 6.0.18)
the latest Java (JDK 1.6.0_07) and
the latest embedded jbos (embedded-jboss-beta3)
Windows XP SP3

In the installation guide we find that to work with JDK 1.6 a Java option must be set:
-Dsun.lang.ClassLoader.allowArraySyntax=true
That is perfectly clear but... don't expect to work if you install everithing as instucted in documentation: the issues is that if you install Tomcat 6 under its default path ("C:\Program Files\Apache Software Foundation\Tomcat 6.0") then the Tomcat server will crash starting!!!
After hours of googling I found a forum thread http://www.seamframework.org/18890.lace posing this problem and solving it.
Tomcat log shows
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Dokumente%20und%20Einstellungen/nes/Eigene%20Dateien/workspace/SUPCockpit/test-build/ state=Not Installed mode=Manual requiredState=Parse
(the example taken from http://www.seamframework.org/18890.lace).
And the problem is that the path to vfsfile includes spaces. Of course it does, because default tomcat installation path does!!! So, just reinstall Tomcat under installation directory with no spaces an the problem must go away! :)

Komentarų nėra: