Re: [jetty-users] mvn jetty:run and war overlay

2011-02-04 Thread Jan Bartel

Eric,

What happens if you specify in your pom:

webAppConfig
  copyWebInffalse/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:
version7.2.2.v20101205/version

Same result.

- Eric

On Wed, Feb 2, 2011 at 3:24 PM, Jesse McConnell
jesse.mcconn...@gmail.com mailto:jesse.mcconn...@gmail.com 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.mcconn...@gmail.com mailto:jesse.mcconn...@gmail.com



On Wed, Feb 2, 2011 at 16:28, Eric Chiang e...@gliffy.com
mailto:e...@gliffy.com 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
  [INFO] Started Jetty Server
  2011-02-02 03:40:45.835:INFO:/:LPS: LPS_HOME is
 

Re: [jetty-users] mvn jetty:run and war overlay

2011-02-04 Thread Jan Bartel

Eric,

Can you reply with the output from setting:

copyWebInffalse/copyWebInf
unpackOverlaystrue/unpackOverlays


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

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

When unpackOverlaystrue/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 unpackOverlaysfalse/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

Re: [jetty-users] mvn jetty:run and war overlay

2011-02-04 Thread Jan Bartel

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

Re: [jetty-users] Jetty 7.3.0.v20110203 Released

2011-02-04 Thread Jesse McConnell
I forgot to mention that the p2 update site has also been released at:

http://download.eclipse.org/updates/jetty-bundles-7.x

that is a composite p2 repository so it is now http browse-able but if
you are interested in those things then you already know how to get at
it.  These are signed and packed bundles typical of eclipse osgi
bundles.

DEB's will be coming eventually, we have had some issues reported with
them so we need to factor those changes into that build before we
release them.

cheers,
jesse

--
jesse mcconnell
jesse.mcconn...@gmail.com



On Fri, Feb 4, 2011 at 17:02, Jesse McConnell jesse.mcconn...@gmail.com wrote:
 We are pleased to announce the release of jetty 7.3.0.v20110203.

 The eclipse distribution is available from:

 http://repo2.maven.org/maven2/org/eclipse/jetty/jetty-distribution/7.3.0.v20110203/

 The hightide distribution is available from:

 http://repo2.maven.org/maven2/org/mortbay/jetty/jetty-hightide/7.3.0.v20110203/

 Below is a list of the issues addressed in this release, note that a
 couple of api's changed around with the core lifecycle which is what
 necessitated the change to 7.3 releases.

 cheers,
 jesse

 jetty-7.3.0.v20110203 3 February 2011
  + JETTY-1259 NullPointerException in JDBCSessionIdManager when
 invalidating session (further update)
  + 296978 standardizing various Testing Util Classes to jetty-test-helper
  + 319178 test failure fix in jetty-util on windows
  + 320457 add SPNEGO support
  + 324505 Implement API login
  + 328872 Multi Jetty xml files not loading if directory is referenced
 in jetty.conf
  + 329746 client option to set just truststore and use strict ssl context
  + 331803 Update XML configuration files to use proper arguments for
 startup command in examples
  + 332179 Fixed formatting of negative dates
  + 332432 Scanner.java now always scanning the canonical form of File
  + 332517 Improved DefaultServlet debug
  + 332703 Cleanup context scope JNDI at stop
  + 332796 Annotations inheritance does not work with jetty7
  + 332799 100% CPU on redeploy session invalidation
  + 332937 Added Destroyable Dumpable interfaces and reworked dependent
 lifecycles, specially of JNDI
  + 333247 fix api compat issue in ConstraintSecurityHandler
  + 333415 wired up HttpInput.available and added test harnesses
  + 333481 Handle UTF-32 codepoints in decode and encode
  + 333608 tlds defined in web.xml are not picked up
  + 333679 Refactored jetty-jmx. Moved mbeans to modules
  + 333679 refactor jetty-jmx to support the OSGi PAX tests.
  + 333717 HttpExchange able to return local address used
  + 333771 System properties are not available inside XML configuration
 file by using the 'property' tag
  + 333875 Monitor public constructor
  + 333892 Improved JVM bug detection
  + 334062 It should be possible to embed in the jetty.home.bundle the
 ssl keystore files
  + 334229 javax-security needs to import the package
 javax.security.cert in its OSGi manifest
  + 334311 fix buffer reuse issue in CachedExchange
  + 335329 Stop SSL spin during handshake and renogotiate
  + 335361 Fixed 'jetty.sh check' to show current PID when JETTY_PID
 env. variable is set
  + 335641 Cleaned up dispatch handling to avoid key.interestOps==0
 when undispatched
  + 335681 Improve ChannelEndPoint.close() to avoid spinning
  + 335836 Race when updating SelectChannelEndPoint._dispatched

 --
 jesse mcconnell
 jesse.mcconn...@gmail.com

___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users