|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Deploy war with cargo maven pluginI try to deploy a war with jetty 6.1.15 (Jetty-Service running).
I use the maven cargo plugin to do this deployement. My configuration is : <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>${cargo-maven2-plugin-version}</version> <configuration> <container> <containerId>jetty6x</containerId> <type>remote</type> <timeout>120000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.servlet.port>8081</cargo.servlet.port> </properties> </configuration> <deployer> <type>remote</type> <deployables> <deployable> <groupId>${pom.groupId}</groupId> <artifactId>myWebApp</artifactId> <type>war</type> </deployable> </deployables> </deployer> </configuration> </plugin> When i execute : mvn cargo:deploy, i've got : java.io.IOException: Server returned HTTP response code: 405 for URL: http:localhost:8081/cargo-jetty-deployer/deploy?path=/myWebApp Have you an idea ? I use another port (not 8080), because port 8080 is already in use. Thanks !! |
|
|
Re: Deploy war with cargo maven pluginMy first inclination is that your server does not allow a PUT but not having the details of how the Jetty Remote deployer is implemented I can not offer any certainties... Could someone else shed some light on this as I will not be able to look into this until this evening. Thanks!
|
|
|
Re: Deploy war with cargo maven pluginOn Wed, 2009-04-01 at 08:22 -0700, rynam0 wrote:
> My first inclination is that your server does not allow a PUT but not having > the details of how the Jetty Remote deployer is implemented I can not offer > any certainties... Could someone else shed some light on this as I will not > be able to look into this until this evening. Thanks! You need to have the Cargo Jetty Remote Deployer war deployed on your remote server, and you need to setup the security permissions on the server for the war to be able to log into it. Jetty doesn't provide remote deployment support itself. > > niamande wrote: > > > > I try to deploy a war with jetty 6.1.15 (Jetty-Service running). > > I use the maven cargo plugin to do this deployement. > > My configuration is : > > <plugin> > > <groupId>org.codehaus.cargo</groupId> > > <artifactId>cargo-maven2-plugin</artifactId> > > <version>${cargo-maven2-plugin-version}</version> > > <configuration> > > <container> > > <containerId>jetty6x</containerId> > > <type>remote</type> > > <timeout>120000</timeout> > > </container> > > > > > > <configuration> > > <type>runtime</type> > > <properties> > > <cargo.servlet.port>8081</cargo.servlet.port> > > </properties> > > </configuration> > > > > <deployer> > > <type>remote</type> > > <deployables> > > <deployable> > > <groupId>${pom.groupId}</groupId> > > <artifactId>myWebApp</artifactId> > > <type>war</type> > > </deployable> > > </deployables> > > </deployer> > > </configuration> > > </plugin> > > > > When i execute : mvn cargo:deploy, i've got : > > > > java.io.IOException: Server returned HTTP response code: 405 for URL: > > http:localhost:8081/cargo-jetty-deployer/deploy?path=/myWebApp > > > > Have you an idea ? > > > > I use another port (not 8080), because port 8080 is already in use. > > > > Thanks !! > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Deploy war with cargo maven pluginMatt Wringe a écrit : Another way of "solving" this issue is to use JOnAS: JOnAS can be run using a Tomcat or Jetty Web container; moreover it supports remote deployments.On Wed, 2009-04-01 at 08:22 -0700, rynam0 wrote: Of course, Jetty is JOnAS is not a "pure" Jetty anymore... Cheers -- S. Ali Tokmen savas-ali.tokmen@... Office: +33 4 76 29 76 19 GSM: +33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com |
|
|
Re: Deploy war with cargo maven pluginThanks. Have you an URL of this deployer war ?
|
|
|
Re: Deploy war with cargo maven pluginniamande a écrit :
> Thanks. Have you an URL of this deployer war ? > > > Hi, Check here: http://cargo.codehaus.org/JOnAS+5.x you can see that the Remote deployer feature is provided. The question is, are you willing to use JOnAS/Jetty ? JOnAS Application Server <http://jonas.ow2.org> Regards, Adriana Danes > Matt Wringe wrote: > >> On Wed, 2009-04-01 at 08:22 -0700, rynam0 wrote: >> >>> My first inclination is that your server does not allow a PUT but not >>> having >>> the details of how the Jetty Remote deployer is implemented I can not >>> offer >>> any certainties... Could someone else shed some light on this as I will >>> not >>> be able to look into this until this evening. Thanks! >>> >> You need to have the Cargo Jetty Remote Deployer war deployed on your >> remote server, and you need to setup the security permissions on the >> server for the war to be able to log into it. Jetty doesn't provide >> remote deployment support itself. >> >> >>> niamande wrote: >>> >>>> I try to deploy a war with jetty 6.1.15 (Jetty-Service running). >>>> I use the maven cargo plugin to do this deployement. >>>> My configuration is : >>>> <plugin> >>>> <groupId>org.codehaus.cargo</groupId> >>>> <artifactId>cargo-maven2-plugin</artifactId> >>>> <version>${cargo-maven2-plugin-version}</version> >>>> <configuration> >>>> <container> >>>> <containerId>jetty6x</containerId> >>>> <type>remote</type> >>>> <timeout>120000</timeout> >>>> </container> >>>> >>>> >>>> <configuration> >>>> <type>runtime</type> >>>> <properties> >>>> <cargo.servlet.port>8081</cargo.servlet.port> >>>> </properties> >>>> </configuration> >>>> >>>> <deployer> >>>> <type>remote</type> >>>> <deployables> >>>> <deployable> >>>> <groupId>${pom.groupId}</groupId> >>>> <artifactId>myWebApp</artifactId> >>>> <type>war</type> >>>> </deployable> >>>> </deployables> >>>> </deployer> >>>> </configuration> >>>> </plugin> >>>> >>>> When i execute : mvn cargo:deploy, i've got : >>>> >>>> java.io.IOException: Server returned HTTP response code: 405 for URL: >>>> http:localhost:8081/cargo-jetty-deployer/deploy?path=/myWebApp >>>> >>>> Have you an idea ? >>>> >>>> I use another port (not 8080), because port 8080 is already in use. >>>> >>>> Thanks !! >>>> >>>> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Deploy war with cargo maven pluginHello,
I'll no try Jonas for the moment. I've installed the Cargo Remote Deployer for Jetty and i've got another error (i've configured my access with good role): HTTP ERROR 500 Problem accessing /cargo-jetty-deployer/deploy. Reason: INTERNAL_SERVER_ERROR Caused by: java.lang.NullPointerException at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.(Unknown Source) at org.codehaus.cargo.deployer.jetty.DeployerServlet.deploy(DeployerServlet.java:356) at org.codehaus.cargo.deployer.jetty.DeployerServlet.doGet(DeployerServlet.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
|
|
|
Re: Deploy war with cargo maven pluginOn Thu, 2009-04-02 at 03:04 -0700, niamande wrote:
> Hello, > > I'll no try Jonas for the moment. I've installed the Cargo Remote Deployer > for Jetty and i've got another error (i've configured my access with good > role): What version of Jetty are you using? > HTTP ERROR 500 > > Problem accessing /cargo-jetty-deployer/deploy. Reason: > > INTERNAL_SERVER_ERROR > > Caused by: > > java.lang.NullPointerException > at java.net.URI$Parser.parse(Unknown Source) > at java.net.URI.(Unknown Source) > at > org.codehaus.cargo.deployer.jetty.DeployerServlet.deploy(DeployerServlet.java:356) > at > org.codehaus.cargo.deployer.jetty.DeployerServlet.doGet(DeployerServlet.java:121) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:324) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) > > > > > danesa wrote: > > > > niamande a écrit : > >> Thanks. Have you an URL of this deployer war ? > >> > >> > >> > > Hi, > > > > Check here: > > > > http://cargo.codehaus.org/JOnAS+5.x > > > > you can see that the Remote deployer feature is provided. > > > > The question is, are you willing to use JOnAS/Jetty ? > > > > > > JOnAS Application Server <http://jonas.ow2.org> > > > > Regards, > > Adriana Danes > >> Matt Wringe wrote: > >> > > > >>>>> > >>>>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe from this list, please visit: > >>> > >>> http://xircles.codehaus.org/manage_email > >>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Deploy war with cargo maven plugin6.1.15
|
|
|
Re: Deploy war with cargo maven pluginOn Thu, 2009-04-02 at 07:00 -0700, niamande wrote:
> 6.1.15 Could you post the part of your pom.xml/build.xml file that handles the remote deployment? I really just need the part about the war, specifically about where you specify the war location, the null pointer exception is occurring because its being sent an empty path. > > > Matt Wringe wrote: > > > > On Thu, 2009-04-02 at 03:04 -0700, niamande wrote: > >> Hello, > >> > >> I'll no try Jonas for the moment. I've installed the Cargo Remote > >> Deployer > >> for Jetty and i've got another error (i've configured my access with > >> good > >> role): > > > > What version of Jetty are you using? > > > >> HTTP ERROR 500 > >> > >> Problem accessing /cargo-jetty-deployer/deploy. Reason: > >> > >> INTERNAL_SERVER_ERROR > >> > >> Caused by: > >> > >> java.lang.NullPointerException > >> at java.net.URI$Parser.parse(Unknown Source) > >> at java.net.URI.(Unknown Source) > >> at > >> org.codehaus.cargo.deployer.jetty.DeployerServlet.deploy(DeployerServlet.java:356) > >> at > >> org.codehaus.cargo.deployer.jetty.DeployerServlet.doGet(DeployerServlet.java:121) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > >> at > >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) > >> at > >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380) > >> at > >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > >> at > >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > >> at > >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) > >> at > >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > >> at > >> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > >> at > >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > >> at org.mortbay.jetty.Server.handle(Server.java:324) > >> at > >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) > >> at > >> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865) > >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) > >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > >> at > >> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) > >> at > >> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) > >> > >> > >> > >> > >> danesa wrote: > >> > > >> > niamande a écrit : > >> >> Thanks. Have you an URL of this deployer war ? > >> >> > >> >> > >> >> > >> > Hi, > >> > > >> > Check here: > >> > > >> > http://cargo.codehaus.org/JOnAS+5.x > >> > > >> > you can see that the Remote deployer feature is provided. > >> > > >> > The question is, are you willing to use JOnAS/Jetty ? > >> > > >> > > >> > JOnAS Application Server <http://jonas.ow2.org> > >> > > >> > Regards, > >> > Adriana Danes > >> >> Matt Wringe wrote: > >> >> > >> > > >> >>>>> > >> >>>>> > >> >>> --------------------------------------------------------------------- > >> >>> To unsubscribe from this list, please visit: > >> >>> > >> >>> http://xircles.codehaus.org/manage_email > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >> > >> >> > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe from this list, please visit: > >> > > >> > http://xircles.codehaus.org/manage_email > >> > > >> > > >> > > >> > > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Deploy war with cargo maven pluginConfiguration in my pom :
<plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>${cargo-maven2-plugin-version}</version> <configuration> <container> <containerId>jetty6x</containerId> <type>remote</type> <timeout>120000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.servlet.port>8081</cargo.servlet.port> <cargo.remote.username>myAdmin</cargo.remote.username> <cargo.remote.password>myPssword</cargo.remote.password> </properties> </configuration> <deployer> <type>remote</type> <deployables> <deployable> <groupId>${pom.groupId}</groupId> <artifactId>transfolio-gto-provider-server</artifactId> <type>war</type> </deployable> </deployables> </deployer> </configuration> </plugin> The configuration of the deployable runs with Tomcat. Thanks !
|
| Free embeddable forum powered by Nabble | Forum Help |