//start the J2EE server which would be started by the server plan
//in the real case
j2eeManager.startJ2EEContainer(kernel);
//start the Axis Serverlet which would be started by the service plan
org.apache.geronimo.jetty.JettyWebAppContext c = null;
GBeanMBean app = new GBeanMBean("org.apache.geronimo.jetty.JettyWebAppContext");
URL url =
Thread.currentThread().getContextClassLoader().getResource("deployables/axis/");
System.out.print(url);
app.setAttribute("uri", URI.create(url.toString()));
app.setAttribute("contextPath", "/axis");
app.setAttribute("componentContext", null);
OnlineUserTransaction userTransaction = new OnlineUserTransaction();
app.setAttribute("userTransaction", userTransaction);
app.setAttribute("webClassPath", new URI[0]);
app.setAttribute("contextPriorityClassLoader", Boolean.FALSE);
app.setReferencePatterns("JettyContainer", Collections.singleton(AxisGeronimoConstants.WEB_CONTAINER_NAME));
app.setAttribute("configurationBaseUrl", Thread.currentThread().getContextClassLoader().getResource("deployables/"));
app.setReferencePattern("TransactionContextManager", AxisGeronimoConstants.TRANSACTION_CONTEXT_MANAGER_NAME);
app.setReferencePattern("TrackedConnectionAssociator", AxisGeronimoConstants.TRACKED_CONNECTION_ASSOCIATOR_NAME);
AxisGeronimoUtils.startGBean(AxisGeronimoConstants.APPLICATION_NAME, app, kernel);
}