Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] JettyMavenHelloWarApp not found when deployed as .war (obscured by FastCGI)

I have tried adding the following section to my Wordpress/FastCGI XML file
( like in http://www.eclipse.org/jetty/documentation/9.3.x/configuring-fastcgi.html ):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">
.......
    <Configure class="org.eclipse.jetty.webapp.WebAppContext">
            <Set name="contextPath">/hello</Set>
            <Set name="war">/var/www/jetty-base/hello-world-0.1-SNAPSHOT.war</Set>
    </Configure>

but that didn't really work (I guess can not use Configure-tag inside Configure):

    java.lang.IllegalStateException: Unknown tag: Configure in file:/var/www/jetty-base/webapps/slova.de.xml

Regards
Alex


On Thu, Jun 30, 2016 at 1:53 PM, Alexander Farber <alexander.farber@xxxxxxxxx> wrote:
But my real question is what would be please the best way to specify a path like "/hello" (or "/ws") when developing a WAR-file?

I would like to develop my project in NetBeans and copy the produced WAR-file to the Linux-server (and maybe try to connect to it remotely as described at https://www.eclipse.org/jetty/documentation/9.3.x/enable-remote-debugging.html )

I have read https://www.eclipse.org/jetty/documentation/9.3.x/configuring-contexts.html#setting-context-path but I am still not sure, what would be the best method for specifying context (like "/hello" or "/ws") and vritual host for my WAR-file...




Back to the top