Sebastien Alborini wrote:
> I am seeing some really weird things with the new conf directory
> structure (conf/default instead of conf):
>
> - If I start jboss normally, ok.
>
> - If use the embeddedtomcatservice (uncommenting out in jboss.conf),
> other services complain, they seem not to see jndi.properties anymore
> (see log below).
>
> - If I then copy jndi.properties to the bin directory for example, all
> runs fine.
>
> I don't see why EmbeddedTomcatService would hide this file from the
> classpath, any ideas?
I've looked into run.bat (for example) and it does seem like Tomcat is
added to the app classloader.
May I suggest that it is removed from there and that the following is
added to jboss.conf:
<MLET CODE = "org.jboss.tomcat.EmbeddedTomcatService"
ARCHIVE="jboss.jar,jasper.jar,webserver.jar,jaxp.jar,parser.jar,servlet.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="Information,Debug,Warning,Error">
<ARG TYPE="java.lang.String" VALUE="[{2}] {4}">
</MLET>
and also add installation notes that those JAR's should be placed in
/lib/ext during installation. This would make the integration of Tomcat
much cleaner, as there would be no difference between it and other
integrations. Currently both SpyderMQ and Tomcat have "special"
integration, which should not be needed.
Feelings on this?
/Rickard