Deploy war with cargo maven plugin

View: New views
11 Messages — Rating Filter:   Alert me  

Deploy war with cargo maven plugin

by niamande :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 !!

Re: Deploy war with cargo maven plugin

by rynam0 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

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 !!

Re: Deploy war with cargo maven plugin

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Deploy war with cargo maven plugin

by S. Ali Tokmen-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Matt Wringe a écrit :
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.
  
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.

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 plugin

by niamande :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks. Have you an URL of this deployer war ?


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


Re: Deploy war with cargo maven plugin

by danesa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:
>  
>> 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 plugin

by niamande :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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):

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


Re: Deploy war with cargo maven plugin

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Deploy war with cargo maven plugin

by niamande :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

6.1.15


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


Re: Deploy war with cargo maven plugin

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 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 plugin

by niamande :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Configuration 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 !


Matt Wringe wrote:
On 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