You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Gavin Lee <ga...@gmail.com> on 2012/09/11 11:54:06 UTC

ant debug failed to launch

I followed the instruction [1] to setup maven build environment.
Everything went well except the last step: ant debug

I can use " mvn -P client -pl client jetty:run " but encounter some
other issue such as system vm could not start. I want to attach
eclipse debug.

Does anybody encounter following issue when using: ant debug?

[java] SEVERE: Error deploying web application directory awsapi
     [java] java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
     [java]     at
org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java:616)
     [java]     at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
     [java]     at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
     [java]     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
     [java]     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
     [java]     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
     [java]     at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
     [java]     at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
     [java]     at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
     [java]     at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
     [java]     at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
     [java]     at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
     [java]     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
     [java]     at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
     [java]     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
     [java]     at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
     [java]     at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
     [java]     at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
     [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
     [java]     at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
     [java]     at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
     [java] Sep 11, 2012 5:52:39 PM
org.apache.coyote.http11.Http11NioProtocol start
     [java] INFO: Starting Coyote HTTP/1.1 on http-7080


[1]: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven

-- 
Gavin

Re: ant debug failed to launch

Posted by prasanna <ts...@apache.org>.
Permissions -rwx- on CATALINA_HOME for the user?

On 11 September 2012 15:24, Gavin Lee <ga...@gmail.com> wrote:
> I followed the instruction [1] to setup maven build environment.
> Everything went well except the last step: ant debug
>
> I can use " mvn -P client -pl client jetty:run " but encounter some
> other issue such as system vm could not start. I want to attach
> eclipse debug.
>
> Does anybody encounter following issue when using: ant debug?
>
> [java] SEVERE: Error deploying web application directory awsapi
>      [java] java.lang.NoSuchMethodError:
> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>      [java]     at
> org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java:616)
>      [java]     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>      [java]     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
>      [java]     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
>      [java]     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>      [java]     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>      [java]     at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
>      [java]     at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
>      [java]     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>      [java]     at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>      [java]     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
>      [java]     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>      [java]     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>      [java]     at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>      [java]     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>      [java]     at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>      [java]     at
> org.apache.catalina.core.StandardService.start(StandardService.java:525)
>      [java]     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>      [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>      [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>      [java]     at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>      [java]     at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>      [java] Sep 11, 2012 5:52:39 PM
> org.apache.coyote.http11.Http11NioProtocol start
>      [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>
>
> [1]: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven
>
> --
> Gavin

Re: ant debug failed to launch

Posted by Chiradeep Vittal <Ch...@citrix.com>.
I checked in a fix in master for the conflicting jars.
Commit 651ac2a83baae1d5e7af24efa929ca264f655f14


On 9/11/12 11:24 PM, "Gavin Lee" <ga...@gmail.com> wrote:

>Hi, Edison
>Sorry for late response since I'm seeking solution. The issue
>persisted still in my env.
>I saw your update and it took effect when deploy-server, there is only
>servlet-api.jar under $CATALINA_HOME/lib/. Unfortunately the "ant
>debug" still had the same issue.
>
>Hi, Chiradeep,
>I tried apache-tomcat-6.0.32, it can not solve my problem either.
>
>I do think my env has something wrong, I will clean the whole
>environment and test again.
>
>Thanks for your great help.
>
>
>
>On Wed, Sep 12, 2012 at 12:24 PM, Chiradeep Vittal
><Ch...@citrix.com> wrote:
>> Also I recall that Tomcat 6.033 has some issue with log4j and won't
>>start. We use 6.0.32
>>
>> --
>> Chiradeep
>>
>> On Sep 11, 2012, at 20:26, "Edison Su" <Ed...@citrix.com> wrote:
>>
>>> I fixed it in master, could you have a try?
>>> ant clean-tomcat
>>> ant build-all deploy-server
>>>
>>>> -----Original Message-----
>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>> Sent: Tuesday, September 11, 2012 7:45 PM
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Subject: RE: ant debug failed to launch
>>>>
>>>> rm $CATALINA_HOME/lib/servlet-api-2.5-20081211.jar
>>>> rm $CATALINA_HOME/lib/servlet-api-2.3.jar
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Gavin Lee [mailto:gavin.lxh@gmail.com]
>>>>> Sent: Tuesday, September 11, 2012 7:26 PM
>>>>> To: cloudstack-dev@incubator.apache.org
>>>>> Subject: Re: ant debug failed to launch
>>>>>
>>>>> I still can not pass by the issue with Chiradeep's guide.
>>>>> "mvn -P deps" will download jars to deps folder which include the
>>>> jars
>>>>> mentioned here.
>>>>> Some build xml file depends on the jars, eg: package.xml and
>>>>> build-aws-api.xml depend on axis*.jar.
>>>>>
>>>>> Some version info in my env:
>>>>> CentOS 6.2 x64
>>>>> apache-tomcat-6.0.33
>>>>> apache-maven-3.0.4
>>>>> Apache Ant version 1.7.1
>>>>>
>>>>>
>>>>> On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
>>>>> <Ch...@citrix.com> wrote:
>>>>>> clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
>>>>>>
>>>>>> But even after manually deleting all the copied-over libs there,
>>>> 'ant
>>>>>> deploy-server' re-introduces the same problems.
>>>>>>
>>>>>> On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
>>>>>>
>>>>>>> Ant clean-tomcat doesn't work?
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
>>>>>>>> Sent: Tuesday, September 11, 2012 11:16 AM
>>>>>>>> To: CloudStack DeveloperList
>>>>>>>> Subject: Re: ant debug failed to launch
>>>>>>>>
>>>>>>>> To get even further, here are the additional steps:
>>>>>>>> rm $CATALINA_HOME/lib/axis*.jar
>>>>>>>> rm $CATALINA_HOME/lib/slf4j*
>>>>>>>> rm $CATALINA_HOME/lib/*jcl*
>>>>>>>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> Not sure where the problem is -- maven or ant.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 9/11/12 10:28 AM, "Chiradeep Vittal"
>>>>> <Ch...@citrix.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I found that I had to remove $CATALINA_HOME/lib/servlet-api-
>>>>> 2.3.jar to
>>>>>>>>> move past this error.
>>>>>>>>>
>>>>>>>>> On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> My environment was ok yesterday for ant debug before I update
>>>> the
>>>>>>>> source
>>>>>>>>>> code.
>>>>>>>>>> I use root account, I know it's not good, I checked both
>>>>>>>> CATALINA_HOME
>>>>>>>>>> and src folder, the folder permission/ownership is correct.
>>>>>>>>>>
>>>>>>>>>> On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav
>>>>> <ro...@citrix.com>
>>>>>>>>>> wrote:
>>>>>>>>>>> Make sure you're the owner on the source code (where your
>>>> jars
>>>>> are)
>>>>>>>> and
>>>>>>>>>>> on CATALINA_HOME.
>>>>>>>>>>> chown -R <your-user> <path to tomcat and path to repo/src>
>>>>>>>>>>>
>>>>>>>>>>> ant deploy-server
>>>>>>>>>>>
>>>>>>>>>>> and,
>>>>>>>>>>>
>>>>>>>>>>> ant debug!
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Rohit
>>>>>>>>>>>
>>>>>>>>>>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com>
>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I followed the instruction [1] to setup maven build
>>>>> environment.
>>>>>>>>>>>> Everything went well except the last step: ant debug
>>>>>>>>>>>>
>>>>>>>>>>>> I can use " mvn -P client -pl client jetty:run " but
>>>> encounter
>>>>>>>> some
>>>>>>>>>>>> other issue such as system vm could not start. I want to
>>>>> attach
>>>>>>>>>>>> eclipse debug.
>>>>>>>>>>>>
>>>>>>>>>>>> Does anybody encounter following issue when using: ant debug?
>>>>>>>>>>>>
>>>>>>>>>>>> [java] SEVERE: Error deploying web application directory
>>>>> awsapi
>>>>>>>>>>>>    [java] java.lang.NoSuchMethodError:
>>>>>>>>>>>>
>>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
>>>>>>>> fecy
>>>>>>>>>>>> c
>>>>>>>>>>>> leEvent(StandardHost.java:616)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>>>> cleS
>>>>>>>>>>>> u
>>>>>>>>>>>> pport.java:142)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
>>>>>>>> :470
>>>>>>>>>>>> 0
>>>>>>>>>>>> )
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
>>>>>>>> se.j
>>>>>>>>>>>> a
>>>>>>>>>>>> va:799)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
>>>>>>>> 779)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
>>>>>>>> ava:
>>>>>>>>>>>> 1
>>>>>>>>>>>> 079)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
>>>>>>>> .jav
>>>>>>>>>>>> a
>>>>>>>>>>>> :1002)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> 
>>>>>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
>>>>>>>> va:3
>>>>>>>>>>>> 2
>>>>>>>>>>>> 4)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>>>> cleS
>>>>>>>>>>>> u
>>>>>>>>>>>> pport.java:142)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> 
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>org.apache.catalina.core.StandardService.start(StandardService.java
>>>>>>>> :525
>>>>>>>>>>>> )
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>> 
>>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>>>>>>>>>>    [java]     at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>>> Method)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>>>>>>>> l.ja
>>>>>>>>>>>> v
>>>>>>>>>>>> a:57)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>>>>>>> esso
>>>>>>>>>>>> r
>>>>>>>>>>>> Impl.java:43)
>>>>>>>>>>>>    [java]     at
>>>>> java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>>>>>>>>>>    [java]     at
>>>>>>>>>>>>
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>>>>>>>>>>>    [java] Sep 11, 2012 5:52:39 PM
>>>>>>>>>>>> org.apache.coyote.http11.Http11NioProtocol start
>>>>>>>>>>>>    [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> [1]:
>>>>>>>>
>>>>>
>>>>>>>> 
>>>>>>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
>>>>>>>> h+Ma
>>>>>>>>>>>> v
>>>>>>>>>>>> en
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Gavin
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Gavin
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gavin
>
>
>
>-- 
>Gavin


Re: ant debug failed to launch

Posted by Gavin Lee <ga...@gmail.com>.
Hi, Edison
Sorry for late response since I'm seeking solution. The issue
persisted still in my env.
I saw your update and it took effect when deploy-server, there is only
servlet-api.jar under $CATALINA_HOME/lib/. Unfortunately the "ant
debug" still had the same issue.

Hi, Chiradeep,
I tried apache-tomcat-6.0.32, it can not solve my problem either.

I do think my env has something wrong, I will clean the whole
environment and test again.

Thanks for your great help.



On Wed, Sep 12, 2012 at 12:24 PM, Chiradeep Vittal
<Ch...@citrix.com> wrote:
> Also I recall that Tomcat 6.033 has some issue with log4j and won't start. We use 6.0.32
>
> --
> Chiradeep
>
> On Sep 11, 2012, at 20:26, "Edison Su" <Ed...@citrix.com> wrote:
>
>> I fixed it in master, could you have a try?
>> ant clean-tomcat
>> ant build-all deploy-server
>>
>>> -----Original Message-----
>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>> Sent: Tuesday, September 11, 2012 7:45 PM
>>> To: cloudstack-dev@incubator.apache.org
>>> Subject: RE: ant debug failed to launch
>>>
>>> rm $CATALINA_HOME/lib/servlet-api-2.5-20081211.jar
>>> rm $CATALINA_HOME/lib/servlet-api-2.3.jar
>>>
>>>
>>>> -----Original Message-----
>>>> From: Gavin Lee [mailto:gavin.lxh@gmail.com]
>>>> Sent: Tuesday, September 11, 2012 7:26 PM
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Subject: Re: ant debug failed to launch
>>>>
>>>> I still can not pass by the issue with Chiradeep's guide.
>>>> "mvn -P deps" will download jars to deps folder which include the
>>> jars
>>>> mentioned here.
>>>> Some build xml file depends on the jars, eg: package.xml and
>>>> build-aws-api.xml depend on axis*.jar.
>>>>
>>>> Some version info in my env:
>>>> CentOS 6.2 x64
>>>> apache-tomcat-6.0.33
>>>> apache-maven-3.0.4
>>>> Apache Ant version 1.7.1
>>>>
>>>>
>>>> On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
>>>> <Ch...@citrix.com> wrote:
>>>>> clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
>>>>>
>>>>> But even after manually deleting all the copied-over libs there,
>>> 'ant
>>>>> deploy-server' re-introduces the same problems.
>>>>>
>>>>> On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
>>>>>
>>>>>> Ant clean-tomcat doesn't work?
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
>>>>>>> Sent: Tuesday, September 11, 2012 11:16 AM
>>>>>>> To: CloudStack DeveloperList
>>>>>>> Subject: Re: ant debug failed to launch
>>>>>>>
>>>>>>> To get even further, here are the additional steps:
>>>>>>> rm $CATALINA_HOME/lib/axis*.jar
>>>>>>> rm $CATALINA_HOME/lib/slf4j*
>>>>>>> rm $CATALINA_HOME/lib/*jcl*
>>>>>>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
>>>>>>>
>>>>>>>
>>>>>>> Not sure where the problem is -- maven or ant.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 9/11/12 10:28 AM, "Chiradeep Vittal"
>>>> <Ch...@citrix.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I found that I had to remove $CATALINA_HOME/lib/servlet-api-
>>>> 2.3.jar to
>>>>>>>> move past this error.
>>>>>>>>
>>>>>>>> On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> My environment was ok yesterday for ant debug before I update
>>> the
>>>>>>> source
>>>>>>>>> code.
>>>>>>>>> I use root account, I know it's not good, I checked both
>>>>>>> CATALINA_HOME
>>>>>>>>> and src folder, the folder permission/ownership is correct.
>>>>>>>>>
>>>>>>>>> On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav
>>>> <ro...@citrix.com>
>>>>>>>>> wrote:
>>>>>>>>>> Make sure you're the owner on the source code (where your
>>> jars
>>>> are)
>>>>>>> and
>>>>>>>>>> on CATALINA_HOME.
>>>>>>>>>> chown -R <your-user> <path to tomcat and path to repo/src>
>>>>>>>>>>
>>>>>>>>>> ant deploy-server
>>>>>>>>>>
>>>>>>>>>> and,
>>>>>>>>>>
>>>>>>>>>> ant debug!
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Rohit
>>>>>>>>>>
>>>>>>>>>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com>
>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> I followed the instruction [1] to setup maven build
>>>> environment.
>>>>>>>>>>> Everything went well except the last step: ant debug
>>>>>>>>>>>
>>>>>>>>>>> I can use " mvn -P client -pl client jetty:run " but
>>> encounter
>>>>>>> some
>>>>>>>>>>> other issue such as system vm could not start. I want to
>>>> attach
>>>>>>>>>>> eclipse debug.
>>>>>>>>>>>
>>>>>>>>>>> Does anybody encounter following issue when using: ant debug?
>>>>>>>>>>>
>>>>>>>>>>> [java] SEVERE: Error deploying web application directory
>>>> awsapi
>>>>>>>>>>>    [java] java.lang.NoSuchMethodError:
>>>>>>>>>>>
>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
>>>>>>> fecy
>>>>>>>>>>> c
>>>>>>>>>>> leEvent(StandardHost.java:616)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>>> cleS
>>>>>>>>>>> u
>>>>>>>>>>> pport.java:142)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java
>>>>>>> :470
>>>>>>>>>>> 0
>>>>>>>>>>> )
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
>>>>>>> se.j
>>>>>>>>>>> a
>>>>>>>>>>> va:799)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
>>>>>>> 779)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
>>>>>>> ava:
>>>>>>>>>>> 1
>>>>>>>>>>> 079)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
>>>>>>> .jav
>>>>>>>>>>> a
>>>>>>>>>>> :1002)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
>>>>>>> va:3
>>>>>>>>>>> 2
>>>>>>>>>>> 4)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>>> cleS
>>>>>>>>>>> u
>>>>>>>>>>> pport.java:142)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> org.apache.catalina.core.StandardService.start(StandardService.java
>>>>>>> :525
>>>>>>>>>>> )
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>>>>>>>>>    [java]     at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>> Method)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>>>>>>> l.ja
>>>>>>>>>>> v
>>>>>>>>>>> a:57)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>>>>>>
>>>>
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>>>>>> esso
>>>>>>>>>>> r
>>>>>>>>>>> Impl.java:43)
>>>>>>>>>>>    [java]     at
>>>> java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>>>>>>>>>    [java]     at
>>>>>>>>>>>
>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>>>>>>>>>>    [java] Sep 11, 2012 5:52:39 PM
>>>>>>>>>>> org.apache.coyote.http11.Http11NioProtocol start
>>>>>>>>>>>    [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [1]:
>>>>>>>
>>>>
>>>>>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
>>>>>>> h+Ma
>>>>>>>>>>> v
>>>>>>>>>>> en
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Gavin
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Gavin
>>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Gavin



-- 
Gavin

Re: ant debug failed to launch

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Also I recall that Tomcat 6.033 has some issue with log4j and won't start. We use 6.0.32

--
Chiradeep

On Sep 11, 2012, at 20:26, "Edison Su" <Ed...@citrix.com> wrote:

> I fixed it in master, could you have a try?
> ant clean-tomcat
> ant build-all deploy-server
> 
>> -----Original Message-----
>> From: Edison Su [mailto:Edison.su@citrix.com]
>> Sent: Tuesday, September 11, 2012 7:45 PM
>> To: cloudstack-dev@incubator.apache.org
>> Subject: RE: ant debug failed to launch
>> 
>> rm $CATALINA_HOME/lib/servlet-api-2.5-20081211.jar
>> rm $CATALINA_HOME/lib/servlet-api-2.3.jar
>> 
>> 
>>> -----Original Message-----
>>> From: Gavin Lee [mailto:gavin.lxh@gmail.com]
>>> Sent: Tuesday, September 11, 2012 7:26 PM
>>> To: cloudstack-dev@incubator.apache.org
>>> Subject: Re: ant debug failed to launch
>>> 
>>> I still can not pass by the issue with Chiradeep's guide.
>>> "mvn -P deps" will download jars to deps folder which include the
>> jars
>>> mentioned here.
>>> Some build xml file depends on the jars, eg: package.xml and
>>> build-aws-api.xml depend on axis*.jar.
>>> 
>>> Some version info in my env:
>>> CentOS 6.2 x64
>>> apache-tomcat-6.0.33
>>> apache-maven-3.0.4
>>> Apache Ant version 1.7.1
>>> 
>>> 
>>> On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
>>> <Ch...@citrix.com> wrote:
>>>> clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
>>>> 
>>>> But even after manually deleting all the copied-over libs there,
>> 'ant
>>>> deploy-server' re-introduces the same problems.
>>>> 
>>>> On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
>>>> 
>>>>> Ant clean-tomcat doesn't work?
>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
>>>>>> Sent: Tuesday, September 11, 2012 11:16 AM
>>>>>> To: CloudStack DeveloperList
>>>>>> Subject: Re: ant debug failed to launch
>>>>>> 
>>>>>> To get even further, here are the additional steps:
>>>>>> rm $CATALINA_HOME/lib/axis*.jar
>>>>>> rm $CATALINA_HOME/lib/slf4j*
>>>>>> rm $CATALINA_HOME/lib/*jcl*
>>>>>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
>>>>>> 
>>>>>> 
>>>>>> Not sure where the problem is -- maven or ant.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 9/11/12 10:28 AM, "Chiradeep Vittal"
>>> <Ch...@citrix.com>
>>>>>> wrote:
>>>>>> 
>>>>>>> I found that I had to remove $CATALINA_HOME/lib/servlet-api-
>>> 2.3.jar to
>>>>>>> move past this error.
>>>>>>> 
>>>>>>> On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>>>>>>> 
>>>>>>>> My environment was ok yesterday for ant debug before I update
>> the
>>>>>> source
>>>>>>>> code.
>>>>>>>> I use root account, I know it's not good, I checked both
>>>>>> CATALINA_HOME
>>>>>>>> and src folder, the folder permission/ownership is correct.
>>>>>>>> 
>>>>>>>> On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav
>>> <ro...@citrix.com>
>>>>>>>> wrote:
>>>>>>>>> Make sure you're the owner on the source code (where your
>> jars
>>> are)
>>>>>> and
>>>>>>>>> on CATALINA_HOME.
>>>>>>>>> chown -R <your-user> <path to tomcat and path to repo/src>
>>>>>>>>> 
>>>>>>>>> ant deploy-server
>>>>>>>>> 
>>>>>>>>> and,
>>>>>>>>> 
>>>>>>>>> ant debug!
>>>>>>>>> 
>>>>>>>>> Regards,
>>>>>>>>> Rohit
>>>>>>>>> 
>>>>>>>>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com>
>>> wrote:
>>>>>>>>> 
>>>>>>>>>> I followed the instruction [1] to setup maven build
>>> environment.
>>>>>>>>>> Everything went well except the last step: ant debug
>>>>>>>>>> 
>>>>>>>>>> I can use " mvn -P client -pl client jetty:run " but
>> encounter
>>>>>> some
>>>>>>>>>> other issue such as system vm could not start. I want to
>>> attach
>>>>>>>>>> eclipse debug.
>>>>>>>>>> 
>>>>>>>>>> Does anybody encounter following issue when using: ant debug?
>>>>>>>>>> 
>>>>>>>>>> [java] SEVERE: Error deploying web application directory
>>> awsapi
>>>>>>>>>>    [java] java.lang.NoSuchMethodError:
>>>>>>>>>> 
>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
>>>>>> fecy
>>>>>>>>>> c
>>>>>>>>>> leEvent(StandardHost.java:616)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>> cleS
>>>>>>>>>> u
>>>>>>>>>> pport.java:142)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java
>>>>>> :470
>>>>>>>>>> 0
>>>>>>>>>> )
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
>>>>>> se.j
>>>>>>>>>> a
>>>>>>>>>> va:799)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
>>>>>> 779)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
>>>>>> ava:
>>>>>>>>>> 1
>>>>>>>>>> 079)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
>>>>>> .jav
>>>>>>>>>> a
>>>>>>>>>> :1002)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
>>>>>> va:3
>>>>>>>>>> 2
>>>>>>>>>> 4)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>>>>> cleS
>>>>>>>>>> u
>>>>>>>>>> pport.java:142)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> org.apache.catalina.core.StandardService.start(StandardService.java
>>>>>> :525
>>>>>>>>>> )
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>>>>>>>>    [java]     at
>>>>>>>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>>>>>>>>    [java]     at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>> Method)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>>>>>> l.ja
>>>>>>>>>> v
>>>>>>>>>> a:57)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>>>>>> 
>>> 
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>>>>> esso
>>>>>>>>>> r
>>>>>>>>>> Impl.java:43)
>>>>>>>>>>    [java]     at
>>> java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>>>>>>>>    [java]     at
>>>>>>>>>> 
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>>>>>>>>>    [java] Sep 11, 2012 5:52:39 PM
>>>>>>>>>> org.apache.coyote.http11.Http11NioProtocol start
>>>>>>>>>>    [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> [1]:
>>>>>> 
>>> 
>>>>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
>>>>>> h+Ma
>>>>>>>>>> v
>>>>>>>>>> en
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> Gavin
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Gavin
>>>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Gavin

RE: ant debug failed to launch

Posted by Edison Su <Ed...@citrix.com>.
I fixed it in master, could you have a try?
ant clean-tomcat
ant build-all deploy-server

> -----Original Message-----
> From: Edison Su [mailto:Edison.su@citrix.com]
> Sent: Tuesday, September 11, 2012 7:45 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: ant debug failed to launch
> 
> rm $CATALINA_HOME/lib/servlet-api-2.5-20081211.jar
> rm $CATALINA_HOME/lib/servlet-api-2.3.jar
> 
> 
> > -----Original Message-----
> > From: Gavin Lee [mailto:gavin.lxh@gmail.com]
> > Sent: Tuesday, September 11, 2012 7:26 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: ant debug failed to launch
> >
> > I still can not pass by the issue with Chiradeep's guide.
> > "mvn -P deps" will download jars to deps folder which include the
> jars
> > mentioned here.
> > Some build xml file depends on the jars, eg: package.xml and
> > build-aws-api.xml depend on axis*.jar.
> >
> > Some version info in my env:
> > CentOS 6.2 x64
> > apache-tomcat-6.0.33
> > apache-maven-3.0.4
> > Apache Ant version 1.7.1
> >
> >
> > On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
> > <Ch...@citrix.com> wrote:
> > > clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
> > >
> > > But even after manually deleting all the copied-over libs there,
> 'ant
> > > deploy-server' re-introduces the same problems.
> > >
> > > On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
> > >
> > >>Ant clean-tomcat doesn't work?
> > >>
> > >>> -----Original Message-----
> > >>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
> > >>> Sent: Tuesday, September 11, 2012 11:16 AM
> > >>> To: CloudStack DeveloperList
> > >>> Subject: Re: ant debug failed to launch
> > >>>
> > >>> To get even further, here are the additional steps:
> > >>> rm $CATALINA_HOME/lib/axis*.jar
> > >>> rm $CATALINA_HOME/lib/slf4j*
> > >>> rm $CATALINA_HOME/lib/*jcl*
> > >>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
> > >>>
> > >>>
> > >>> Not sure where the problem is -- maven or ant.
> > >>>
> > >>>
> > >>>
> > >>> On 9/11/12 10:28 AM, "Chiradeep Vittal"
> > <Ch...@citrix.com>
> > >>> wrote:
> > >>>
> > >>> >I found that I had to remove $CATALINA_HOME/lib/servlet-api-
> > 2.3.jar to
> > >>> >move past this error.
> > >>> >
> > >>> >On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
> > >>> >
> > >>> >>My environment was ok yesterday for ant debug before I update
> the
> > >>> source
> > >>> >>code.
> > >>> >>I use root account, I know it's not good, I checked both
> > >>> CATALINA_HOME
> > >>> >>and src folder, the folder permission/ownership is correct.
> > >>> >>
> > >>> >>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav
> > <ro...@citrix.com>
> > >>> >>wrote:
> > >>> >>> Make sure you're the owner on the source code (where your
> jars
> > are)
> > >>> and
> > >>> >>>on CATALINA_HOME.
> > >>> >>> chown -R <your-user> <path to tomcat and path to repo/src>
> > >>> >>>
> > >>> >>> ant deploy-server
> > >>> >>>
> > >>> >>> and,
> > >>> >>>
> > >>> >>> ant debug!
> > >>> >>>
> > >>> >>> Regards,
> > >>> >>> Rohit
> > >>> >>>
> > >>> >>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com>
> > wrote:
> > >>> >>>
> > >>> >>>> I followed the instruction [1] to setup maven build
> > environment.
> > >>> >>>> Everything went well except the last step: ant debug
> > >>> >>>>
> > >>> >>>> I can use " mvn -P client -pl client jetty:run " but
> encounter
> > >>> some
> > >>> >>>> other issue such as system vm could not start. I want to
> > attach
> > >>> >>>> eclipse debug.
> > >>> >>>>
> > >>> >>>> Does anybody encounter following issue when using: ant debug?
> > >>> >>>>
> > >>> >>>> [java] SEVERE: Error deploying web application directory
> > awsapi
> > >>> >>>>     [java] java.lang.NoSuchMethodError:
> > >>> >>>>
> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
> > >>> fecy
> > >>> >>>>c
> > >>> >>>>leEvent(StandardHost.java:616)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> > >>> cleS
> > >>> >>>>u
> > >>> >>>>pport.java:142)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
> > >>> :470
> > >>> >>>>0
> > >>> >>>>)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
> > >>> se.j
> > >>> >>>>a
> > >>> >>>>va:799)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
> > >>> 779)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
> > >>> ava:
> > >>> >>>>1
> > >>> >>>>079)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
> > >>> .jav
> > >>> >>>>a
> > >>> >>>>:1002)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
> > >>> va:3
> > >>> >>>>2
> > >>> >>>>4)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> > >>> cleS
> > >>> >>>>u
> > >>> >>>>pport.java:142)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java
> > >>> :525
> > >>> >>>>)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
> > >>> >>>>     [java]     at
> > >>> >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
> > >>> >>>>     [java]     at
> > >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > >>> >>>>Method)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> > >>> l.ja
> > >>> >>>>v
> > >>> >>>>a:57)
> > >>> >>>>     [java]     at
> > >>> >>>>
> > >>>
> >
> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> > >>> esso
> > >>> >>>>r
> > >>> >>>>Impl.java:43)
> > >>> >>>>     [java]     at
> > java.lang.reflect.Method.invoke(Method.java:616)
> > >>> >>>>     [java]     at
> > >>> >>>>
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> > >>> >>>>     [java]     at
> > >>> >>>>
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> > >>> >>>>     [java] Sep 11, 2012 5:52:39 PM
> > >>> >>>> org.apache.coyote.http11.Http11NioProtocol start
> > >>> >>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
> > >>> >>>>
> > >>> >>>>
> > >>> >>>> [1]:
> > >>>
> >
> >>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
> > >>> h+Ma
> > >>> >>>>v
> > >>> >>>>en
> > >>> >>>>
> > >>> >>>> --
> > >>> >>>> Gavin
> > >>> >>>
> > >>> >>
> > >>> >>
> > >>> >>
> > >>> >>--
> > >>> >>Gavin
> > >>> >
> > >>
> > >
> >
> >
> >
> > --
> > Gavin

RE: ant debug failed to launch

Posted by Edison Su <Ed...@citrix.com>.
rm $CATALINA_HOME/lib/servlet-api-2.5-20081211.jar
rm $CATALINA_HOME/lib/servlet-api-2.3.jar


> -----Original Message-----
> From: Gavin Lee [mailto:gavin.lxh@gmail.com]
> Sent: Tuesday, September 11, 2012 7:26 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: ant debug failed to launch
> 
> I still can not pass by the issue with Chiradeep's guide.
> "mvn -P deps" will download jars to deps folder which include the jars
> mentioned here.
> Some build xml file depends on the jars, eg: package.xml and
> build-aws-api.xml depend on axis*.jar.
> 
> Some version info in my env:
> CentOS 6.2 x64
> apache-tomcat-6.0.33
> apache-maven-3.0.4
> Apache Ant version 1.7.1
> 
> 
> On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
> > clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
> >
> > But even after manually deleting all the copied-over libs there, 'ant
> > deploy-server' re-introduces the same problems.
> >
> > On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
> >
> >>Ant clean-tomcat doesn't work?
> >>
> >>> -----Original Message-----
> >>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
> >>> Sent: Tuesday, September 11, 2012 11:16 AM
> >>> To: CloudStack DeveloperList
> >>> Subject: Re: ant debug failed to launch
> >>>
> >>> To get even further, here are the additional steps:
> >>> rm $CATALINA_HOME/lib/axis*.jar
> >>> rm $CATALINA_HOME/lib/slf4j*
> >>> rm $CATALINA_HOME/lib/*jcl*
> >>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
> >>>
> >>>
> >>> Not sure where the problem is -- maven or ant.
> >>>
> >>>
> >>>
> >>> On 9/11/12 10:28 AM, "Chiradeep Vittal"
> <Ch...@citrix.com>
> >>> wrote:
> >>>
> >>> >I found that I had to remove $CATALINA_HOME/lib/servlet-api-
> 2.3.jar to
> >>> >move past this error.
> >>> >
> >>> >On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
> >>> >
> >>> >>My environment was ok yesterday for ant debug before I update the
> >>> source
> >>> >>code.
> >>> >>I use root account, I know it's not good, I checked both
> >>> CATALINA_HOME
> >>> >>and src folder, the folder permission/ownership is correct.
> >>> >>
> >>> >>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav
> <ro...@citrix.com>
> >>> >>wrote:
> >>> >>> Make sure you're the owner on the source code (where your jars
> are)
> >>> and
> >>> >>>on CATALINA_HOME.
> >>> >>> chown -R <your-user> <path to tomcat and path to repo/src>
> >>> >>>
> >>> >>> ant deploy-server
> >>> >>>
> >>> >>> and,
> >>> >>>
> >>> >>> ant debug!
> >>> >>>
> >>> >>> Regards,
> >>> >>> Rohit
> >>> >>>
> >>> >>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com>
> wrote:
> >>> >>>
> >>> >>>> I followed the instruction [1] to setup maven build
> environment.
> >>> >>>> Everything went well except the last step: ant debug
> >>> >>>>
> >>> >>>> I can use " mvn -P client -pl client jetty:run " but encounter
> >>> some
> >>> >>>> other issue such as system vm could not start. I want to
> attach
> >>> >>>> eclipse debug.
> >>> >>>>
> >>> >>>> Does anybody encounter following issue when using: ant debug?
> >>> >>>>
> >>> >>>> [java] SEVERE: Error deploying web application directory
> awsapi
> >>> >>>>     [java] java.lang.NoSuchMethodError:
> >>> >>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
> >>> fecy
> >>> >>>>c
> >>> >>>>leEvent(StandardHost.java:616)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> >>> cleS
> >>> >>>>u
> >>> >>>>pport.java:142)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
> >>> :470
> >>> >>>>0
> >>> >>>>)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
> >>> se.j
> >>> >>>>a
> >>> >>>>va:799)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
> >>> 779)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
> >>> ava:
> >>> >>>>1
> >>> >>>>079)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
> >>> .jav
> >>> >>>>a
> >>> >>>>:1002)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
> >>> >>>>     [java]     at
> >>> >>>>
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
> >>> va:3
> >>> >>>>2
> >>> >>>>4)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> >>> cleS
> >>> >>>>u
> >>> >>>>pport.java:142)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
> >>> >>>>     [java]     at
> >>> >>>>
> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java
> >>> :525
> >>> >>>>)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
> >>> >>>>     [java]     at
> >>> >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
> >>> >>>>     [java]     at
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>> >>>>Method)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> >>> l.ja
> >>> >>>>v
> >>> >>>>a:57)
> >>> >>>>     [java]     at
> >>> >>>>
> >>>
> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> >>> esso
> >>> >>>>r
> >>> >>>>Impl.java:43)
> >>> >>>>     [java]     at
> java.lang.reflect.Method.invoke(Method.java:616)
> >>> >>>>     [java]     at
> >>> >>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> >>> >>>>     [java]     at
> >>> >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> >>> >>>>     [java] Sep 11, 2012 5:52:39 PM
> >>> >>>> org.apache.coyote.http11.Http11NioProtocol start
> >>> >>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
> >>> >>>>
> >>> >>>>
> >>> >>>> [1]:
> >>>
> >>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
> >>> h+Ma
> >>> >>>>v
> >>> >>>>en
> >>> >>>>
> >>> >>>> --
> >>> >>>> Gavin
> >>> >>>
> >>> >>
> >>> >>
> >>> >>
> >>> >>--
> >>> >>Gavin
> >>> >
> >>
> >
> 
> 
> 
> --
> Gavin

Re: ant debug failed to launch

Posted by Gavin Lee <ga...@gmail.com>.
I still can not pass by the issue with Chiradeep's guide.
"mvn -P deps" will download jars to deps folder which include the jars
mentioned here.
Some build xml file depends on the jars, eg: package.xml and
build-aws-api.xml depend on axis*.jar.

Some version info in my env:
CentOS 6.2 x64
apache-tomcat-6.0.33
apache-maven-3.0.4
Apache Ant version 1.7.1


On Wed, Sep 12, 2012 at 2:54 AM, Chiradeep Vittal
<Ch...@citrix.com> wrote:
> clean-tomcat does not clean out the $CATALINA_HOME/libs directory.
>
> But even after manually deleting all the copied-over libs there, 'ant
> deploy-server' re-introduces the same problems.
>
> On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:
>
>>Ant clean-tomcat doesn't work?
>>
>>> -----Original Message-----
>>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
>>> Sent: Tuesday, September 11, 2012 11:16 AM
>>> To: CloudStack DeveloperList
>>> Subject: Re: ant debug failed to launch
>>>
>>> To get even further, here are the additional steps:
>>> rm $CATALINA_HOME/lib/axis*.jar
>>> rm $CATALINA_HOME/lib/slf4j*
>>> rm $CATALINA_HOME/lib/*jcl*
>>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
>>>
>>>
>>> Not sure where the problem is -- maven or ant.
>>>
>>>
>>>
>>> On 9/11/12 10:28 AM, "Chiradeep Vittal" <Ch...@citrix.com>
>>> wrote:
>>>
>>> >I found that I had to remove $CATALINA_HOME/lib/servlet-api-2.3.jar to
>>> >move past this error.
>>> >
>>> >On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>>> >
>>> >>My environment was ok yesterday for ant debug before I update the
>>> source
>>> >>code.
>>> >>I use root account, I know it's not good, I checked both
>>> CATALINA_HOME
>>> >>and src folder, the folder permission/ownership is correct.
>>> >>
>>> >>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com>
>>> >>wrote:
>>> >>> Make sure you're the owner on the source code (where your jars are)
>>> and
>>> >>>on CATALINA_HOME.
>>> >>> chown -R <your-user> <path to tomcat and path to repo/src>
>>> >>>
>>> >>> ant deploy-server
>>> >>>
>>> >>> and,
>>> >>>
>>> >>> ant debug!
>>> >>>
>>> >>> Regards,
>>> >>> Rohit
>>> >>>
>>> >>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
>>> >>>
>>> >>>> I followed the instruction [1] to setup maven build environment.
>>> >>>> Everything went well except the last step: ant debug
>>> >>>>
>>> >>>> I can use " mvn -P client -pl client jetty:run " but encounter
>>> some
>>> >>>> other issue such as system vm could not start. I want to attach
>>> >>>> eclipse debug.
>>> >>>>
>>> >>>> Does anybody encounter following issue when using: ant debug?
>>> >>>>
>>> >>>> [java] SEVERE: Error deploying web application directory awsapi
>>> >>>>     [java] java.lang.NoSuchMethodError:
>>> >>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
>>> fecy
>>> >>>>c
>>> >>>>leEvent(StandardHost.java:616)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>> cleS
>>> >>>>u
>>> >>>>pport.java:142)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
>>> :470
>>> >>>>0
>>> >>>>)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
>>> se.j
>>> >>>>a
>>> >>>>va:799)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
>>> 779)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
>>> ava:
>>> >>>>1
>>> >>>>079)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
>>> .jav
>>> >>>>a
>>> >>>>:1002)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>> >>>>     [java]     at
>>> >>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
>>> va:3
>>> >>>>2
>>> >>>>4)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>>> cleS
>>> >>>>u
>>> >>>>pport.java:142)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>> >>>>     [java]     at
>>> >>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>org.apache.catalina.core.StandardService.start(StandardService.java
>>> :525
>>> >>>>)
>>> >>>>     [java]     at
>>> >>>>
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>> >>>>     [java]     at
>>> >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>> >>>>     [java]     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> >>>>Method)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>>> l.ja
>>> >>>>v
>>> >>>>a:57)
>>> >>>>     [java]     at
>>> >>>>
>>> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>>> esso
>>> >>>>r
>>> >>>>Impl.java:43)
>>> >>>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>>> >>>>     [java]     at
>>> >>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>> >>>>     [java]     at
>>> >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>> >>>>     [java] Sep 11, 2012 5:52:39 PM
>>> >>>> org.apache.coyote.http11.Http11NioProtocol start
>>> >>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>> >>>>
>>> >>>>
>>> >>>> [1]:
>>> >>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
>>> h+Ma
>>> >>>>v
>>> >>>>en
>>> >>>>
>>> >>>> --
>>> >>>> Gavin
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >>--
>>> >>Gavin
>>> >
>>
>



-- 
Gavin

Re: ant debug failed to launch

Posted by Chiradeep Vittal <Ch...@citrix.com>.
clean-tomcat does not clean out the $CATALINA_HOME/libs directory.

But even after manually deleting all the copied-over libs there, 'ant
deploy-server' re-introduces the same problems.

On 9/11/12 11:34 AM, "Edison Su" <Ed...@citrix.com> wrote:

>Ant clean-tomcat doesn't work?
>
>> -----Original Message-----
>> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
>> Sent: Tuesday, September 11, 2012 11:16 AM
>> To: CloudStack DeveloperList
>> Subject: Re: ant debug failed to launch
>> 
>> To get even further, here are the additional steps:
>> rm $CATALINA_HOME/lib/axis*.jar
>> rm $CATALINA_HOME/lib/slf4j*
>> rm $CATALINA_HOME/lib/*jcl*
>> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
>> 
>> 
>> Not sure where the problem is -- maven or ant.
>> 
>> 
>> 
>> On 9/11/12 10:28 AM, "Chiradeep Vittal" <Ch...@citrix.com>
>> wrote:
>> 
>> >I found that I had to remove $CATALINA_HOME/lib/servlet-api-2.3.jar to
>> >move past this error.
>> >
>> >On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>> >
>> >>My environment was ok yesterday for ant debug before I update the
>> source
>> >>code.
>> >>I use root account, I know it's not good, I checked both
>> CATALINA_HOME
>> >>and src folder, the folder permission/ownership is correct.
>> >>
>> >>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com>
>> >>wrote:
>> >>> Make sure you're the owner on the source code (where your jars are)
>> and
>> >>>on CATALINA_HOME.
>> >>> chown -R <your-user> <path to tomcat and path to repo/src>
>> >>>
>> >>> ant deploy-server
>> >>>
>> >>> and,
>> >>>
>> >>> ant debug!
>> >>>
>> >>> Regards,
>> >>> Rohit
>> >>>
>> >>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
>> >>>
>> >>>> I followed the instruction [1] to setup maven build environment.
>> >>>> Everything went well except the last step: ant debug
>> >>>>
>> >>>> I can use " mvn -P client -pl client jetty:run " but encounter
>> some
>> >>>> other issue such as system vm could not start. I want to attach
>> >>>> eclipse debug.
>> >>>>
>> >>>> Does anybody encounter following issue when using: ant debug?
>> >>>>
>> >>>> [java] SEVERE: Error deploying web application directory awsapi
>> >>>>     [java] java.lang.NoSuchMethodError:
>> >>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
>> fecy
>> >>>>c
>> >>>>leEvent(StandardHost.java:616)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>> cleS
>> >>>>u
>> >>>>pport.java:142)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
>> :470
>> >>>>0
>> >>>>)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
>> se.j
>> >>>>a
>> >>>>va:799)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
>> 779)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
>> ava:
>> >>>>1
>> >>>>079)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
>> .jav
>> >>>>a
>> >>>>:1002)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>> >>>>     [java]     at
>> >>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
>> va:3
>> >>>>2
>> >>>>4)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
>> cleS
>> >>>>u
>> >>>>pport.java:142)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>> >>>>     [java]     at
>> >>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>> >>>>     [java]     at
>> >>>>
>> >>>>org.apache.catalina.core.StandardService.start(StandardService.java
>> :525
>> >>>>)
>> >>>>     [java]     at
>> >>>>
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>> >>>>     [java]     at
>> >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>> >>>>     [java]     at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> >>>>Method)
>> >>>>     [java]     at
>> >>>>
>> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>> l.ja
>> >>>>v
>> >>>>a:57)
>> >>>>     [java]     at
>> >>>>
>> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
>> esso
>> >>>>r
>> >>>>Impl.java:43)
>> >>>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>> >>>>     [java]     at
>> >>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> >>>>     [java]     at
>> >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> >>>>     [java] Sep 11, 2012 5:52:39 PM
>> >>>> org.apache.coyote.http11.Http11NioProtocol start
>> >>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>> >>>>
>> >>>>
>> >>>> [1]:
>> >>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
>> h+Ma
>> >>>>v
>> >>>>en
>> >>>>
>> >>>> --
>> >>>> Gavin
>> >>>
>> >>
>> >>
>> >>
>> >>--
>> >>Gavin
>> >
>


RE: ant debug failed to launch

Posted by Edison Su <Ed...@citrix.com>.
Ant clean-tomcat doesn't work?

> -----Original Message-----
> From: Chiradeep Vittal [mailto:Chiradeep.Vittal@citrix.com]
> Sent: Tuesday, September 11, 2012 11:16 AM
> To: CloudStack DeveloperList
> Subject: Re: ant debug failed to launch
> 
> To get even further, here are the additional steps:
> rm $CATALINA_HOME/lib/axis*.jar
> rm $CATALINA_HOME/lib/slf4j*
> rm $CATALINA_HOME/lib/*jcl*
> rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar
> 
> 
> Not sure where the problem is -- maven or ant.
> 
> 
> 
> On 9/11/12 10:28 AM, "Chiradeep Vittal" <Ch...@citrix.com>
> wrote:
> 
> >I found that I had to remove $CATALINA_HOME/lib/servlet-api-2.3.jar to
> >move past this error.
> >
> >On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
> >
> >>My environment was ok yesterday for ant debug before I update the
> source
> >>code.
> >>I use root account, I know it's not good, I checked both
> CATALINA_HOME
> >>and src folder, the folder permission/ownership is correct.
> >>
> >>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com>
> >>wrote:
> >>> Make sure you're the owner on the source code (where your jars are)
> and
> >>>on CATALINA_HOME.
> >>> chown -R <your-user> <path to tomcat and path to repo/src>
> >>>
> >>> ant deploy-server
> >>>
> >>> and,
> >>>
> >>> ant debug!
> >>>
> >>> Regards,
> >>> Rohit
> >>>
> >>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
> >>>
> >>>> I followed the instruction [1] to setup maven build environment.
> >>>> Everything went well except the last step: ant debug
> >>>>
> >>>> I can use " mvn -P client -pl client jetty:run " but encounter
> some
> >>>> other issue such as system vm could not start. I want to attach
> >>>> eclipse debug.
> >>>>
> >>>> Does anybody encounter following issue when using: ant debug?
> >>>>
> >>>> [java] SEVERE: Error deploying web application directory awsapi
> >>>>     [java] java.lang.NoSuchMethodError:
> >>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.li
> fecy
> >>>>c
> >>>>leEvent(StandardHost.java:616)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> cleS
> >>>>u
> >>>>pport.java:142)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java
> :470
> >>>>0
> >>>>)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
> se.j
> >>>>a
> >>>>va:799)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
> 779)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.j
> ava:
> >>>>1
> >>>>079)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig
> .jav
> >>>>a
> >>>>:1002)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
> >>>>     [java]     at
> >>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
> va:3
> >>>>2
> >>>>4)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
> cleS
> >>>>u
> >>>>pport.java:142)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
> >>>>     [java]     at
> >>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
> >>>>     [java]     at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java
> :525
> >>>>)
> >>>>     [java]     at
> >>>>
> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
> >>>>     [java]     at
> >>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
> >>>>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>>>Method)
> >>>>     [java]     at
> >>>>
> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
> l.ja
> >>>>v
> >>>>a:57)
> >>>>     [java]     at
> >>>>
> >>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
> esso
> >>>>r
> >>>>Impl.java:43)
> >>>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
> >>>>     [java]     at
> >>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> >>>>     [java]     at
> >>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> >>>>     [java] Sep 11, 2012 5:52:39 PM
> >>>> org.apache.coyote.http11.Http11NioProtocol start
> >>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
> >>>>
> >>>>
> >>>> [1]:
> >>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+wit
> h+Ma
> >>>>v
> >>>>en
> >>>>
> >>>> --
> >>>> Gavin
> >>>
> >>
> >>
> >>
> >>--
> >>Gavin
> >


Re: ant debug failed to launch

Posted by Chiradeep Vittal <Ch...@citrix.com>.
To get even further, here are the additional steps:
rm $CATALINA_HOME/lib/axis*.jar
rm $CATALINA_HOME/lib/slf4j*
rm $CATALINA_HOME/lib/*jcl*
rm $CATALINA_HOME/webapps7080/awsapi/WEB-INF/lib/log4j-1.2.15.jar


Not sure where the problem is -- maven or ant.



On 9/11/12 10:28 AM, "Chiradeep Vittal" <Ch...@citrix.com>
wrote:

>I found that I had to remove $CATALINA_HOME/lib/servlet-api-2.3.jar to
>move past this error.
>
>On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:
>
>>My environment was ok yesterday for ant debug before I update the source
>>code.
>>I use root account, I know it's not good, I checked both CATALINA_HOME
>>and src folder, the folder permission/ownership is correct.
>>
>>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com>
>>wrote:
>>> Make sure you're the owner on the source code (where your jars are) and
>>>on CATALINA_HOME.
>>> chown -R <your-user> <path to tomcat and path to repo/src>
>>>
>>> ant deploy-server
>>>
>>> and,
>>>
>>> ant debug!
>>>
>>> Regards,
>>> Rohit
>>>
>>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
>>>
>>>> I followed the instruction [1] to setup maven build environment.
>>>> Everything went well except the last step: ant debug
>>>>
>>>> I can use " mvn -P client -pl client jetty:run " but encounter some
>>>> other issue such as system vm could not start. I want to attach
>>>> eclipse debug.
>>>>
>>>> Does anybody encounter following issue when using: ant debug?
>>>>
>>>> [java] SEVERE: Error deploying web application directory awsapi
>>>>     [java] java.lang.NoSuchMethodError:
>>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecy
>>>>c
>>>>leEvent(StandardHost.java:616)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
>>>>u
>>>>pport.java:142)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:470
>>>>0
>>>>)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
>>>>a
>>>>va:799)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>>>     [java]     at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
>>>>1
>>>>079)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
>>>>a
>>>>:1002)
>>>>     [java]     at
>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>>     [java]     at
>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
>>>>2
>>>>4)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
>>>>u
>>>>pport.java:142)
>>>>     [java]     at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>>     [java]     at
>>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>>     [java]     at
>>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>>     [java]     at
>>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>>     [java]     at
>>>> 
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:525
>>>>)
>>>>     [java]     at
>>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>>     [java]     at
>>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>Method)
>>>>     [java]     at
>>>> 
>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>v
>>>>a:57)
>>>>     [java]     at
>>>> 
>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>r
>>>>Impl.java:43)
>>>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>>>>     [java]     at
>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>>     [java]     at
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>>>     [java] Sep 11, 2012 5:52:39 PM
>>>> org.apache.coyote.http11.Http11NioProtocol start
>>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>>>
>>>>
>>>> [1]: 
>>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Ma
>>>>v
>>>>en
>>>>
>>>> --
>>>> Gavin
>>>
>>
>>
>>
>>-- 
>>Gavin
>


Re: ant debug failed to launch

Posted by Chiradeep Vittal <Ch...@citrix.com>.
I found that I had to remove $CATALINA_HOME/lib/servlet-api-2.3.jar to
move past this error.

On 9/11/12 7:04 AM, "Gavin Lee" <ga...@gmail.com> wrote:

>My environment was ok yesterday for ant debug before I update the source
>code.
>I use root account, I know it's not good, I checked both CATALINA_HOME
>and src folder, the folder permission/ownership is correct.
>
>On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com>
>wrote:
>> Make sure you're the owner on the source code (where your jars are) and
>>on CATALINA_HOME.
>> chown -R <your-user> <path to tomcat and path to repo/src>
>>
>> ant deploy-server
>>
>> and,
>>
>> ant debug!
>>
>> Regards,
>> Rohit
>>
>> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
>>
>>> I followed the instruction [1] to setup maven build environment.
>>> Everything went well except the last step: ant debug
>>>
>>> I can use " mvn -P client -pl client jetty:run " but encounter some
>>> other issue such as system vm could not start. I want to attach
>>> eclipse debug.
>>>
>>> Does anybody encounter following issue when using: ant debug?
>>>
>>> [java] SEVERE: Error deploying web application directory awsapi
>>>     [java] java.lang.NoSuchMethodError:
>>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>>     [java]     at
>>> 
>>>org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecyc
>>>leEvent(StandardHost.java:616)
>>>     [java]     at
>>> 
>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
>>>pport.java:142)
>>>     [java]     at
>>> 
>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:4700
>>>)
>>>     [java]     at
>>> 
>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
>>>va:799)
>>>     [java]     at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>>     [java]     at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>>     [java]     at
>>> 
>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1
>>>079)
>>>     [java]     at
>>> 
>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
>>>:1002)
>>>     [java]     at
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>>     [java]     at
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>>     [java]     at
>>> 
>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:32
>>>4)
>>>     [java]     at
>>> 
>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
>>>pport.java:142)
>>>     [java]     at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>>     [java]     at
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>>     [java]     at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>>     [java]     at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>>     [java]     at
>>> 
>>>org.apache.catalina.core.StandardService.start(StandardService.java:525)
>>>     [java]     at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>>     [java]     at
>>>org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>Method)
>>>     [java]     at
>>> 
>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>>>a:57)
>>>     [java]     at
>>> 
>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>>Impl.java:43)
>>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>>>     [java]     at
>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>>     [java]     at
>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>>     [java] Sep 11, 2012 5:52:39 PM
>>> org.apache.coyote.http11.Http11NioProtocol start
>>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>>
>>>
>>> [1]: 
>>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Mav
>>>en
>>>
>>> --
>>> Gavin
>>
>
>
>
>-- 
>Gavin


Re: ant debug failed to launch

Posted by Gavin Lee <ga...@gmail.com>.
My environment was ok yesterday for ant debug before I update the source code.
I use root account, I know it's not good, I checked both CATALINA_HOME
and src folder, the folder permission/ownership is correct.

On Tue, Sep 11, 2012 at 8:05 PM, Rohit Yadav <ro...@citrix.com> wrote:
> Make sure you're the owner on the source code (where your jars are) and on CATALINA_HOME.
> chown -R <your-user> <path to tomcat and path to repo/src>
>
> ant deploy-server
>
> and,
>
> ant debug!
>
> Regards,
> Rohit
>
> On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:
>
>> I followed the instruction [1] to setup maven build environment.
>> Everything went well except the last step: ant debug
>>
>> I can use " mvn -P client -pl client jetty:run " but encounter some
>> other issue such as system vm could not start. I want to attach
>> eclipse debug.
>>
>> Does anybody encounter following issue when using: ant debug?
>>
>> [java] SEVERE: Error deploying web application directory awsapi
>>     [java] java.lang.NoSuchMethodError:
>> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>>     [java]     at
>> org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java:616)
>>     [java]     at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>>     [java]     at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
>>     [java]     at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
>>     [java]     at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>     [java]     at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>     [java]     at
>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
>>     [java]     at
>> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
>>     [java]     at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>>     [java]     at
>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>>     [java]     at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
>>     [java]     at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>>     [java]     at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>>     [java]     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>     [java]     at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>>     [java]     at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>     [java]     at
>> org.apache.catalina.core.StandardService.start(StandardService.java:525)
>>     [java]     at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>     [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     [java]     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>     [java]     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>>     [java]     at
>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>     [java]     at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>     [java] Sep 11, 2012 5:52:39 PM
>> org.apache.coyote.http11.Http11NioProtocol start
>>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
>>
>>
>> [1]: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven
>>
>> --
>> Gavin
>



-- 
Gavin

Re: ant debug failed to launch

Posted by Rohit Yadav <ro...@citrix.com>.
Make sure you're the owner on the source code (where your jars are) and on CATALINA_HOME.
chown -R <your-user> <path to tomcat and path to repo/src>

ant deploy-server

and,

ant debug!

Regards,
Rohit

On 11-Sep-2012, at 3:24 PM, Gavin Lee <ga...@gmail.com> wrote:

> I followed the instruction [1] to setup maven build environment.
> Everything went well except the last step: ant debug
> 
> I can use " mvn -P client -pl client jetty:run " but encounter some
> other issue such as system vm could not start. I want to attach
> eclipse debug.
> 
> Does anybody encounter following issue when using: ant debug?
> 
> [java] SEVERE: Error deploying web application directory awsapi
>     [java] java.lang.NoSuchMethodError:
> javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
>     [java]     at
> org.apache.catalina.core.StandardHost$MemoryLeakTrackingListener.lifecycleEvent(StandardHost.java:616)
>     [java]     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>     [java]     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
>     [java]     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
>     [java]     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>     [java]     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>     [java]     at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
>     [java]     at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
>     [java]     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
>     [java]     at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
>     [java]     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
>     [java]     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>     [java]     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
>     [java]     at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>     [java]     at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
>     [java]     at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>     [java]     at
> org.apache.catalina.core.StandardService.start(StandardService.java:525)
>     [java]     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>     [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     [java]     at java.lang.reflect.Method.invoke(Method.java:616)
>     [java]     at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>     [java]     at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>     [java] Sep 11, 2012 5:52:39 PM
> org.apache.coyote.http11.Http11NioProtocol start
>     [java] INFO: Starting Coyote HTTP/1.1 on http-7080
> 
> 
> [1]: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven
> 
> -- 
> Gavin