A WebAppContext is the basic webapp/war functionality. If you need other things, like ... JNDI, Annotation Scanning, etc...
Then those features are added to your webapp via its Configuration's - see: https://github.com/jetty-project/embedded-servlet-3.1/blob/master/src/main/java/org/eclipse/jetty/demo/EmbedMe.java#L37-L47 I don't know what AAR/Axis Archive is or does. Is it another webapp? (if so, you can have both webapps as on different context paths via a ContextHandlerCollection which holds both WebAppContext's) I think if you figure out what this AAR/Axis Archive is, then you'll be able to start using SOAP. Joakim Erdfelt / [email protected] On Wed, Sep 2, 2015 at 9:04 AM, Arun Kumar <[email protected]> wrote: > Hi Joakim, > > I have tried with WebAppContext instead of Deploymentmanager class. The > application is up but not loading all features. My application has AAR(Axis > archive ) file which is under webapps folder. > Also we are using SOAP webservices for sending request/response. > > As I'm using embedded jetty server is WebAppContext class is enough ?. > > > Thanks > > On Tue, Sep 1, 2015 at 11:14 PM, Joakim Erdfelt <[email protected]> > wrote: > >> Can't you just create the WebAppContext directly and add it to your >> server? >> Why bother with the DeploymentManager steps? >> >> Joakim Erdfelt / [email protected] >> >> On Tue, Sep 1, 2015 at 10:41 AM, Arun Kumar <[email protected]> >> wrote: >> >>> Hi Team, >>> >>> I have changed the following code in Jetty6 to Jetty9 migration. I'm >>> facing an issue that Illegal StateException :'No contexts found" >>> >>> *Existing code in Jetty6:* >>> this.jettyWebServer = new Server(); //org.mortbay.jetty.Server >>> >>> ThreadPool threadPool = new ThreadPool(threadPoolSize); >>> >>> jettyWebServer.setThreadPool(threadPool); >>> >>> Connector connector = new SelectChannelConnector(); >>> >>> connector.setPort(port); >>> >>> this.jettyWebServer.setConnectors(new Connector[]{connector}); >>> >>> WebAppDeployer webAppDeployer = new WebAppDeployer(); >>> >>> webAppDeployer.setContexts(this.jettyWebServer); /// setContexts >>> method is not available in Jetty9 >>> >>> webAppDeployer.setWebAppDir(warpath); >>> >>> webAppDeployer.setExtract(true); >>> >>> webAppDeployer.setParentLoaderPriority(true); >>> >>> webAppDeployer.start(); >>> >>> this.jettyWebServer.setStopAtShutdown(true); >>> >>> this.jettyWebServer.setSendServerVersion(false); >>> >>> >>> this.jettyWebServer.start(); >>> this.jettyWebServer.join(); >>> >>> I have modified the above code for Jetty9 as follows:: >>> >>> >>> * Jetty9 code:*DeploymentManager deploymentManager = new >>> DeploymentManager(); // added DeploymentManager in Jetty9 >>> QueuedThreadPool threadPool = new >>> QueuedThreadPool(threadPoolSize);// Thread pool >>> threadPool.setMaxThreads(500); >>> >>> this.jettyWebServer = new Server(threadPool);// >>> org.eclipse.jetty.Server >>> >>> ContextHandlerCollection contexts = new >>> ContextHandlerCollection(); >>> >>> contexts.setHandlers(new Handler[] { context}); >>> >>> this.jettyWebServer.setHandler(contexts); >>> >>> ServerConnector connector = new ServerConnector(jettyWebServer); >>> >>> connector.setPort(port); >>> >>> this.jettyWebServer.setConnectors(new Connector[]{connector}); >>> >>> WebAppProvider webAppDeployer = new WebAppProvider();// >>> WebAppProvider replaced webAppDeployer in Jetty6 >>> >>> webAppDeployer.setExtractWars(true); >>> >>> webAppDeployer.setParentLoaderPriority(true); >>> >>> webAppDeployer.setMonitoredDirName(warpath); >>> >>> deploymentManager.addAppProvider(webAppDeployer); >>> this.jettyWebServer.addBean(deploymentManager); >>> this.jettyWebServer.setStopAtShutdown(true); >>> this.jettyWebServer.start(); >>> this.jettyWebServer.join(); >>> >>> In Jetty 9 code I have deploymentmanager and webAppProvider classes. >>> Since there is no setContexts method in Jetty9 How can we set the context?. >>> Also the jetty9 code is correct ?. Could you please help me ?. >>> >>> >>> Thanks, >>> Arun >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> > > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
