Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] mvn jetty:run and war overlay

Yes, there is a WEB-INF directory in src/main/webapp/WEB-INF.

Here is what I see in the Openlazslo source:

        // Default to webapp root
        String lhome = LZHttpUtils.getRealPath(ctxt, "/");

    static public String getRealPath(ServletContext ctxt, String path)
    {
        String realPath = ctxt.getRealPath(path);
        if ( realPath != null && File.separatorChar == '\\' )
            realPath = realPath.replace('/', '\\');
        try {
            return new File(realPath).getCanonicalPath();
        } catch (java.io.IOException e) {
            throw new org.openlaszlo.utils.ChainedException(e);
        }
    }




On Fri, Feb 4, 2011 at 2:14 PM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
Eric,

Do you have a src/main/webapp/WEB-INF directory in your maven project?
Also, can you find out what resource OpenLazlo is looking for with
getRealPath()? Is it "/WEB-INF" ?

thanks
Jan


On 05/02/11 08:44, Eric Chiang wrote:
Sure thing...

Jetty starts up fine, but when I try to hit a jsp resource that exists
in my source tree, the Openlaszlo App that is packaged in the war
fails.  The resource the Openlaszlo App is looking for is in the war
and not in the source directory.

$ mvn clean jetty:run
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Gliffy Clients
[INFO]    task-segment: [clean, jetty:run]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory
/Users/echiang/Projects/gliffy/src/release_merge/client/target
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/resources
Downloading:
http://repo1.maven.org/maven2/org/openlaszlo/openlaszlo-servlet/4.8.1/openlaszlo-servlet-4.8.1.pom
[INFO] Unable to find resource
'org.openlaszlo:openlaszlo-servlet:pom:4.8.1' in repository central
(http://repo1.maven.org/maven2)
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/Users/echiang/Projects/gliffy/src/release_merge/client/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: Gliffy Clients
[INFO] webAppSourceDirectory
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp does
not exist. Defaulting to
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes directory
/Users/echiang/Projects/gliffy/src/release_merge/client/target/classes
does not exist
[INFO] Context path = /
[INFO] Tmp directory =
/Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = null
[INFO] Webapp directory =
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
[INFO] Starting jetty 7.2.2.v20101205 ...
2011-02-04 13:40:52.976:INFO::jetty-7.2.2.v20101205
2011-02-04 13:40:56.566:INFO::Adding overlay:
file:/Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/openlaszlo-servlet-4_8_1_war/
2011-02-04 13:40:58.050:INFO::No Transaction manager found - if your
webapp requires one, please configure one.
2011-02-04 13:40:58.447:INFO::Started
SelectChannelConnector@0.0.0.0:8080
<http://SelectChannelConnector@0.0.0.0:8080>

[INFO] Started Jetty Server
2011-02-04 13:41:51.192:INFO:/:LPS: LPS_HOME is
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
2011-02-04 13:41:51.230:WARN::Error for /gliffy/online/main.lzx
java.lang.ExceptionInInitializerError
at org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:680)
Caused by:
org.openlaszlo.utils.ChainedException: java.io.FileNotFoundException:
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp/WEB-INF/lps/config/lps.properties
(No such file or directory)
at org.openlaszlo.server.LPS.loadProperties(LPS.java:512)
at org.openlaszlo.server.LPS.getProperty(LPS.java:527)
at org.openlaszlo.server.LPS.getLocale(LPS.java:553)
at org.openlaszlo.i18n.LaszloMessages.<clinit>(LaszloMessages.java:28)
at org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:680)
Caused by:
java.io.FileNotFoundException:
/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp/WEB-INF/lps/config/lps.properties
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.openlaszlo.server.LPS.loadProperties(LPS.java:507)
at org.openlaszlo.server.LPS.getProperty(LPS.java:527)
at org.openlaszlo.server.LPS.getLocale(LPS.java:553)
at org.openlaszlo.i18n.LaszloMessages.<clinit>(LaszloMessages.java:28)
at org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
at java.lang.Thread.run(Thread.java:680)


On Fri, Feb 4, 2011 at 1:32 PM, Jan Bartel <janb@xxxxxxxxxxx
<mailto:janb@xxxxxxxxxxx>> wrote:

   Eric,

   Can you reply with the output from setting:

   <copyWebInf>false</copyWebInf>
   <unpackOverlays>true</unpackOverlays>


   thanks,
   Jan

   On 05/02/11 04:44, Eric Chiang wrote:

       I set the property, but still no luck...

       When <unpackOverlays>true</unpackOverlays>, it looks for the
       dependent
       war in the src webapp directory (where it doesn't exist):

       org.openlaszlo.utils.ChainedException:
       java.io.FileNotFoundException:
       /Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp/WEB-INF/lps/config/lps.properties
       (No such file or directory)

       When <unpackOverlays>false</unpackOverlays>, I get a malformed URL
       exception:

       2011-02-04 09:40:45.572:INFO::Adding overlay:
       jar:file:/Users/echiang/.m2/repository/org/openlaszlo/openlaszlo-servlet/4.8.1/openlaszlo-servlet-4.8.1.war!/
       2011-02-04 09:40:46.863:WARN::Unable to parse TLD:
       jar:jar:file:/Users/echiang/.m2/repository/org/openlaszlo/openlaszlo-servlet/4.8.1/openlaszlo-servlet-4.8.1.war!/WEB-INF/lib/standard.jar!/META-INF/fmt-1_0.tld
       java.net.MalformedURLException: no !/ in spec
       at java.net.URL.<init>(URL.java:601)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:161)
       at java.net.JarURLConnection.<init>(JarURLConnection.java:144)
       at
       sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:63)
       at
       sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
       at java.net.URL.openConnection(URL.java:945)
       at
       com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:651)
       at
       com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
       at
       com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
       at
       com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
       at
       com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
       at
       com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
       at
       com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
       at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
       at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:187)
       at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:203)
       at
       org.eclipse.jetty.webapp.TagLibConfiguration$TldDescriptor.parse(TagLibConfiguration.java:150)
       at
       org.eclipse.jetty.webapp.TagLibConfiguration.preConfigure(TagLibConfiguration.java:291)
       at
       org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:465)
       at
       org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:495)
       at
       org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:180)
       at
       org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at
       org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226)
       at
       org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:164)
       at
       org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at
       org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226)
       at
       org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at
       org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93)
       at org.eclipse.jetty.server.Server.doStart(Server.java:243)
       at
       org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:67)
       at
       org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at
       org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:447)
       at
       org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:387)
       at
       org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:586)
       at
       org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
       at
       org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
       at
       org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at
       org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at
       org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

       - Eric

       On Fri, Feb 4, 2011 at 12:52 AM, Jan Bartel <janb@xxxxxxxxxxx
       <mailto:janb@xxxxxxxxxxx>
       <mailto:janb@xxxxxxxxxxx <mailto:janb@xxxxxxxxxxx>>> wrote:

           Eric,

           What happens if you specify in your pom:

       <webAppConfig>
       <copyWebInf>false</copyWebInf>
       </webAppConfig>

           ?

           Jan


           On 03/02/11 10:35, Eric Chiang wrote:

               Hi Jesse,

               Good to see that people are active on this group :)

               Tried:
       <version>7.2.2.v20101205</version>

               Same result.

               - Eric

               On Wed, Feb 2, 2011 at 3:24 PM, Jesse McConnell
       <jesse.mcconnell@xxxxxxxxx <mailto:jesse.mcconnell@xxxxxxxxx>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>>>> wrote:

                   can you give the 7.2.2 version of the maven plugin
       a whirl
               or are you
                   using servlet 3.0?

                   reason being that there is an outside chance that
       8.0 M2
               didn't get
                   updates to the maven plugin merged over before it
       was released

                   we have some CQ's going through for jsp 2.2
       support and
               the plan was
                   to start pushing RC's of 8.0 around that time, but
       they
               are taking so
                   long a new milestone might be prudent since jetty
       7.3 is
               staged right
                   now and soon to be released.

                   cheers,
                   jesse

                   --
                   jesse mcconnell
       jesse.mcconnell@xxxxxxxxx <mailto:jesse.mcconnell@xxxxxxxxx>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>
       <mailto:jesse.mcconnell@xxxxxxxxx
       <mailto:jesse.mcconnell@xxxxxxxxx>>>




                   On Wed, Feb 2, 2011 at 16:28, Eric Chiang
       <eric@xxxxxxxxxx <mailto:eric@xxxxxxxxxx>
       <mailto:eric@xxxxxxxxxx <mailto:eric@xxxxxxxxxx>>
       <mailto:eric@xxxxxxxxxx <mailto:eric@xxxxxxxxxx>
       <mailto:eric@xxxxxxxxxx <mailto:eric@xxxxxxxxxx>>>> wrote:
        > Hi,
        > In reading the documentation it appears this is supported in
                   the latest
        > releases of the jetty-maven-plugin
        >
       http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin#Using_Overlayed_WARs
        > However, when running a third party war as the overlay
               (Openlaszlo
        > Presentation Server), we face the following error:
        > [INFO] [clean:clean {execution: default-clean}]
        > [INFO] Deleting directory
        > /Users/echiang/Projects/gliffy/src/release_merge/client/target
        > [INFO] Preparing jetty:run
        > [INFO] [resources:resources {execution: default-resources}]
        > [WARNING] Using platform encoding (MacRoman actually) to copy
                   filtered
        > resources, i.e. build is platform dependent!
        > [INFO] skip non existing resourceDirectory
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/src/main/resources
        > Downloading:
       http://repo1.maven.org/maven2/org/openlaszlo/openlaszlo/4.8.1/openlaszlo-4.8.1.pom
        > [INFO] Unable to find resource
       'org.openlaszlo:openlaszlo:pom:4.8.1' in
        > repository central (http://repo1.maven.org/maven2)
        > [INFO] [compiler:compile {execution: default-compile}]
        > [INFO] No sources to compile
        > [INFO] [resources:testResources {execution:
               default-testResources}]
        > [WARNING] Using platform encoding (MacRoman actually) to copy
                   filtered
        > resources, i.e. build is platform dependent!
        > [INFO] skip non existing resourceDirectory
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/src/test/resources
        > [INFO] [compiler:testCompile {execution: default-testCompile}]
        > [INFO] No sources to compile
        > [INFO] [jetty:run {execution: default-cli}]
        > [INFO] Configuring Jetty for project: Gliffy Clients
        > [INFO] webAppSourceDirectory
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
                   does
        > not exist. Defaulting to
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
        > [INFO] Reload Mechanic: automatic
        > [INFO] Classes directory
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/classes
                   does
        > not exist
        > [INFO] Context path = /
        > [INFO] Tmp directory =
        >

         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp
        > [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
        > [INFO] Web overrides =  none
        > [INFO] web.xml file =
        >


         file:/Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp/WEB-INF/web.xml
        > [INFO] Webapp directory =
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/src/main/webapp
        > [INFO] Starting jetty 8.0.0.M2 ...
        > 2011-02-02 03:40:27.052:INFO::jetty-8.0.0.M2
        > 2011-02-02 03:40:35.540:INFO::Adding overlay:
        >


         file:/Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/openlaszlo-4_8_1_war/
        > 2011-02-02 03:40:35.541:INFO::Copying WEB-INF/lib
        >


         file:/Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/openlaszlo-4_8_1_war/WEB-INF/lib/
        > to
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf/WEB-INF/lib
        > 2011-02-02 03:40:35.650:INFO::Copying WEB-INF/classes from
        >


         file:/Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/openlaszlo-4_8_1_war/WEB-INF/classes/
        > to
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf/WEB-INF/classes
        > 2011-02-02 03:40:37.263:INFO::No Transaction manager found - if
                   your webapp
        > requires one, please configure one.
        > 2011-02-02 03:40:42.673:INFO::Started
       SelectChannelConnector@0.0.0.0:8090
       <http://SelectChannelConnector@0.0.0.0:8090>
       <http://SelectChannelConnector@0.0.0.0:8090 <http://0.0.0.0:8090>>
       <http://SelectChannelConnector@0.0.0.0:8090
       <http://0.0.0.0:8090> <http://0.0.0.0:8090>>



        > [INFO] Started Jetty Server
        > 2011-02-02 03:40:45.835:INFO:/:LPS: LPS_HOME is
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf
        > 2011-02-02 03:40:45.894:WARN::Error for /gliffy/online/main.lzx
        > java.lang.ExceptionInInitializerError
        > at

         org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
        > at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        > at


         org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
        > at
        >


         org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        > at
        >


         org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        > at


         org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        > at org.eclipse.jetty.server.Server.handle(Server.java:353)
        > at
        >


         org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        > at
        >


         org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        > at

         org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        > at


         org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        > at


         org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        > at
        >


         org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        > at java.lang.Thread.run(Thread.java:680)
        > Caused by:
        > org.openlaszlo.utils.ChainedException:
                   java.io.FileNotFoundException:
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf/WEB-INF/lps/config/lps.properties
        > (No such file or directory)
        > at org.openlaszlo.server.LPS.loadProperties(LPS.java:512)
        > at org.openlaszlo.server.LPS.getProperty(LPS.java:527)
        > at org.openlaszlo.server.LPS.getLocale(LPS.java:553)
        > at


         org.openlaszlo.i18n.LaszloMessages.<clinit>(LaszloMessages.java:28)
        > at

         org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
        > at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        > at


         org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
        > at
        >


         org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        > at
        >


         org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        > at


         org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        > at org.eclipse.jetty.server.Server.handle(Server.java:353)
        > at
        >


         org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        > at
        >


         org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        > at

         org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        > at


         org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        > at


         org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        > at
        >


         org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        > at java.lang.Thread.run(Thread.java:680)
        > Caused by:
        > java.io.FileNotFoundException:
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf/WEB-INF/lps/config/lps.properties
        > (No such file or directory)
        > at java.io.FileInputStream.open(Native Method)
        > at java.io.FileInputStream.<init>(FileInputStream.java:106)
        > at org.openlaszlo.server.LPS.loadProperties(LPS.java:507)
        > at org.openlaszlo.server.LPS.getProperty(LPS.java:527)
        > at org.openlaszlo.server.LPS.getLocale(LPS.java:553)
        > at


         org.openlaszlo.i18n.LaszloMessages.<clinit>(LaszloMessages.java:28)
        > at

         org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:108)
        > at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:341)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
        > at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        > at


         org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
        > at
        >


         org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        > at
        >


         org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        > at


         org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        > at
        >


         org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        > at
        >


         org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        > at
        >


         org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        > at
        >


         org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        > at org.eclipse.jetty.server.Server.handle(Server.java:353)
        > at
        >


         org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        > at
        >


         org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        > at

         org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        > at


         org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        > at


         org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        > at
        >


         org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        > at
        >


         org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        > at java.lang.Thread.run(Thread.java:680)
        > Here is a snippet of the pom:
        > <properties>
        > <lps.version>4.8.1</lps.version>
        > </properties>
        > <dependencies>
        > <dependency>
        > <groupId>org.openlaszlo</groupId>
        > <artifactId>openlaszlo-servlet</artifactId>
        > <version>${lps.version}</version>
        > <type>war</type>
        > <scope>runtime</scope>
        > </dependency>
        > </dependencies>
        > <build>
        > <plugins>
        > <plugin>
        > <groupId>org.mortbay.jetty</groupId>
        > <artifactId>jetty-maven-plugin</artifactId>
        > <configuration>
        > <systemProperties>
        > <systemProperty>
        > <name>jetty.port</name>
        > <value>8090</value>
        > </systemProperty>
        > </systemProperties>
        > <webAppConfig>
        > <contextPath>/</contextPath>
        > <unpackOverlays>true</unpackOverlays>
        > </webAppConfig>
        > </configuration>
        > </plugin>
        > <plugin>
        > <artifactId>maven-compiler-plugin</artifactId>
        > <configuration>
        > <source>1.6</source>
        > <target>1.6</target>
        > </configuration>
        > </plugin>
        > </plugins>
        > </build>
        >
        > And here is the structure of the resulting target directory:
        > target
        > + tmp
        > + - jsp
        > + - openlaszlo-servlet-4_8_1_war
        > + - webinf
        > The opelaszlo war is fully extracted in the sub-directory
        > 'openlaszlo-servlet-4_8_1_war' and the resource that is missing
                   can be found
        > in this extracted war.
        > One thing to note is the classes in the war define the LPS_HOME
                   variable to
        > point to 'webinf' rather than the
       'openlaszlo-servlet-4_8_1_war':
        > 2011-02-02 03:40:45.835:INFO:/:LPS: LPS_HOME is
        >


         /Users/echiang/Projects/gliffy/src/release_merge/client/target/tmp/webinf
        > Looking at the code, it appears this path is derived by the
                   call to:
        > ServletContext.getRealPath()
        > Any ideas on why this isn't working?
        > Thanks,
        > Eric
        >
        > _______________________________________________
        > jetty-users mailing list
        > jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
       <mailto:jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>>
       <mailto:jetty-users@xxxxxxxxxxx
       <mailto:jetty-users@xxxxxxxxxxx>
       <mailto:jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>>>


        > https://dev.eclipse.org/mailman/listinfo/jetty-users
        >
        >
                   _______________________________________________
                   jetty-users mailing list
       jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
       <mailto:jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>>
       <mailto:jetty-users@xxxxxxxxxxx
       <mailto:jetty-users@xxxxxxxxxxx>
       <mailto:jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>>>


       https://dev.eclipse.org/mailman/listinfo/jetty-users




               _______________________________________________
               jetty-users mailing list
       jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
       <mailto:jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>>
       https://dev.eclipse.org/mailman/listinfo/jetty-users


           --

           Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx
       <mailto:janb@xxxxxxxxxxx>
       <mailto:janb@xxxxxxxxxxx <mailto:janb@xxxxxxxxxxx>> |

       http://www.webtide.com

           _______________________________________________
           jetty-users mailing list

       jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
   --
   Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx
   <mailto:janb@xxxxxxxxxxx> | http://www.webtide.com




_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx

--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx


Back to the top