tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Nine <tn...@apigee.com>
Subject Embedded runtime in Uber jar
Date Tue, 02 Jul 2013 23:52:24 GMT
Hi All,
  I've easily enabled Tomcat 7.0.41 for our testing frameworks in our REST
project.  Now I'm trying to embed it in our standalone, and I'm not having
an easy time of it.  Below is an outline of how our uber jar is distributed.



standalone ----> apache-cassandra

                 -----> usergrid-rest


Our standalone depends on both apache cassandra, and the web application.
 We had previously pre-compiled our jsps, and included the jsp jar, as well
as the compiled servlets.  This has caused some issues for us, so I'd like
to embed the webapp directly.  This way, it will load and behave the same
as when it's deployed as a web application.

I've found this plugin, but it won't work for us.  We also need to boostrap
cassandra and it's keyspaces before starting the tomcat plugin.

Ultimately we want our users to be able to launch the standalone with the
"java -jar" command.

java -jar usergrid-standalone-0.0.27.jar

Any thoughts on how to accomplish this?  In it's current form, I don't have
an extracted webapp I can create the context from.  I'm not sure how to
proceed.  We're already using a custom classloader to ensure that
everything in our uber jar is loaded.  Below is the source.  Any help is
greatly appreciated!

https://github.com/apigee/usergrid-stack/blob/USERGRID-1731/standalone/src/main/java/org/usergrid/standalone/Server.java#L147

Thanks,
Todd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message