You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by "nithya.srinivasan@sun.com" <Ni...@Sun.COM> on 2009/05/13 00:39:43 UTC

Errors when deploying

I am getting these errors when depolying my war.
Will appreciate any help.

ServerConfig
2.1.4
Build    2009.03.26-16:45:43.658-0400
Start Time    Tue May 12 15:15:03 PDT 2009
Up Time    
20 minutes 36 seconds

Operating System
Architecture    sparc
Name    SunOS
Version    5.9
Patch Level    unknown
Locale    en_US

JVM
Java Version    1.5.0_01
Java Vendor    Sun Microsystems Inc.
Node    minibar/192.18.71.96
Current Memory Used    
86.63 MB
Most Memory Used    
86.63 MB
Total Memory Allocated    
913.38 MB
Available Processors    4

Exception
--------------
java.lang.Exception: Could not load 1/0/com/sun/codemodel/CodeWriter.class
        at 
org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:726
)
        at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141)
        at 
org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
ices(WARWebServiceFinder.java:154)
        at 
org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
rPOJOWebServices(AdvancedWARWebServiceFinder.java:73)
        at 
org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
rWebServices(AdvancedWARWebServiceFinder.java:45)
        at 
org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
ices(WARWebServiceFinder.java:70)
        at 
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ
ices(JAXWSServiceBuilder.java:97)
        at 
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices
(JAXWSServiceBuilder.java:80)
        at 
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIn
itContext(AbstractWebModuleBuilder.java:364)
        at 
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext
(TomcatModuleBuilder.java:330)
        at 
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContex
t(SwitchingModuleBuilder.java:159)



Thanks
Nithya

Re: Errors when deploying

Posted by Nithya <Ni...@Sun.COM>.
Thanks Kevan.
The webservices-tools.jar comes from another team. So not sure if we 
would be able to changing it.
I will wait for this to be fixed, may be for 2.1.5 :

Thanks for your investigation

Nithya
Kevan Miller wrote:
>
> On May 13, 2009, at 5:43 PM, Nithya wrote:
>
>> I checked with 2.1.1 and I am able to deploy it fine.
>> But same war doesnt deploy on 2.1.4
>
> Thanks Nithya.
>
> We're not liking the packaging of the webservices-tools.jar archive. 
> In particular:
>
>   drwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/
>   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/
>   -rw-r--r--       656  28-Mar-2005  12:23:02  1.0/META-INF/MANIFEST.MF
>   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/services/
>   -rw-r--r--       164  28-Mar-2005  12:22:14  
> 1.0/META-INF/services/com.sun.tools.xjc.CodeAugmenter
>   -rw-r--r--        44   2-Nov-2002  16:15:24  
> 1.0/META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory
>   drwxr-xr-x         0  28-Mar-2005  12:20:58  1.0/com/
>   drwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/com/sun/
>   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/com/sun/codemodel/
>   -rw-r--r--       287  28-Mar-2005  12:20:36  
> 1.0/com/sun/codemodel/CodeWriter.class
> ...
>   -rw-r--r--      1179  28-Feb-2008  18:49:50  
> com/sun/codemodel/CodeWriter.class
>
> If you removed the 1.0/ classes from your jar, I'm pretty sure it 
> would work. That said, we shouldn't be failing the deploy, in this 
> case. I haven't looked, but would guess that an xbean-finder fix, has 
> now broken the annotation processing of webservices-tools.jar (thus 
> working in 2.1.1 and broken in 2.1.4).
>
> I've created https://issues.apache.org/jira/browse/XBEAN-126 to track...
>
> --kevan


Re: Errors when deploying

Posted by Kevan Miller <ke...@gmail.com>.
On May 13, 2009, at 5:43 PM, Nithya wrote:

> I checked with 2.1.1 and I am able to deploy it fine.
> But same war doesnt deploy on 2.1.4

Thanks Nithya.

We're not liking the packaging of the webservices-tools.jar archive.  
In particular:

   drwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/
   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/
   -rw-r--r--       656  28-Mar-2005  12:23:02  1.0/META-INF/MANIFEST.MF
   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/META-INF/services/
   -rw-r--r--       164  28-Mar-2005  12:22:14  1.0/META-INF/services/ 
com.sun.tools.xjc.CodeAugmenter
   -rw-r--r--        44   2-Nov-2002  16:15:24  1.0/META-INF/services/ 
org.relaxng.datatype.DatatypeLibraryFactory
   drwxr-xr-x         0  28-Mar-2005  12:20:58  1.0/com/
   drwxr-xr-x         0  26-Sep-2008  13:19:20  1.0/com/sun/
   drwxr-xr-x         0  26-Sep-2008  13:19:22  1.0/com/sun/codemodel/
   -rw-r--r--       287  28-Mar-2005  12:20:36  1.0/com/sun/codemodel/ 
CodeWriter.class
...
   -rw-r--r--      1179  28-Feb-2008  18:49:50  com/sun/codemodel/ 
CodeWriter.class

If you removed the 1.0/ classes from your jar, I'm pretty sure it  
would work. That said, we shouldn't be failing the deploy, in this  
case. I haven't looked, but would guess that an xbean-finder fix, has  
now broken the annotation processing of webservices-tools.jar (thus  
working in 2.1.1 and broken in 2.1.4).

I've created https://issues.apache.org/jira/browse/XBEAN-126 to track...

--kevan

Re: Errors when deploying

Posted by Nithya <Ni...@Sun.COM>.
I checked with 2.1.1 and I am able to deploy it fine.
But same war doesnt deploy on 2.1.4

Nithya
Nithya wrote:
> Hi
> This is the last error in the logs
>
> 2009-05-13 12:05:01,720 ERROR [DirectoryHotDeployer] Unable to deploy: 
> WSDL gene
> ration failed
> org.apache.geronimo.common.DeploymentException: WSDL generation failed
>         at 
> org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGene
> rator.java:345)
>         at 
> org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builde
> r.java:222)
>         at 
> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(J
> AXWSServiceBuilder.java:175)
>         at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(T
> omcatModuleBuilder.java:447)
>         at 
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
> SwitchingModuleBuilder.java:165)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(T
> omcatModuleBuilder.java:447)
>         at 
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
> SwitchingModuleBuilder.java:165)
>         at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati
> on(EARConfigBuilder.java:647)
>         at 
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
>         at 
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
> ectionMethodInvoker.java:34)
>         at 
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
> n.java:124)
>         at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:867)
>         at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 239)
>  at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:867)
>         at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 239)
>         at 
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doD
> eploy(AbstractDeployCommand.java:116)
>         at 
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Dis
> tributeCommand.java:61)
>         at java.lang.Thread.run(Thread.java:595)
>
>
> Any clues?
>
> Thanks
> Nithya
> nithya.srinivasan@sun.com wrote:
>> The deploy fails.
>> I am deploying opensso, a opensource application.
>> You need to download the bits from https://opensso.dev.java.net/
>>
>> Nithya
>> Kevan Miller wrote:
>>>
>>> On May 12, 2009, at 10:33 PM, nithya.srinivasan@sun.com 
>>> <ma...@sun.com> wrote:
>>>
>>>> Hi Kevan
>>>> I am doing command line deploy
>>>> export/isqa/geronimo/bin/deploy.sh  --user system --password 
>>>> manager deploy app.war  geronimo-web.xml
>>>> I see the error in geronimo.out file
>>>
>>> K. And is the deploy command failing or succeeding? The error is 
>>> occurring while we're scanning for annotations. If deploy is 
>>> succeeding, you can ignore. If you can share your application, then 
>>> hopefully somebody can investigate and fix the general problem...
>>>
>>> --kevan
>>
>


Re: Errors when deploying

Posted by Nithya <Ni...@Sun.COM>.
Hi
This is the last error in the logs

2009-05-13 12:05:01,720 ERROR [DirectoryHotDeployer] Unable to deploy: 
WSDL gene
ration failed
org.apache.geronimo.common.DeploymentException: WSDL generation failed
        at 
org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGene
rator.java:345)
        at 
org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builde
r.java:222)
        at 
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(J
AXWSServiceBuilder.java:175)
        at 
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(T
omcatModuleBuilder.java:447)
        at 
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
SwitchingModuleBuilder.java:165)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(T
omcatModuleBuilder.java:447)
        at 
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(
SwitchingModuleBuilder.java:165)
        at 
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati
on(EARConfigBuilder.java:647)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
ectionMethodInvoker.java:34)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:867)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
 at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:867)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
239)
        at 
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doD
eploy(AbstractDeployCommand.java:116)
        at 
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Dis
tributeCommand.java:61)
        at java.lang.Thread.run(Thread.java:595)


Any clues?

Thanks
Nithya
nithya.srinivasan@sun.com wrote:
> The deploy fails.
> I am deploying opensso, a opensource application.
> You need to download the bits from https://opensso.dev.java.net/
>
> Nithya
> Kevan Miller wrote:
>>
>> On May 12, 2009, at 10:33 PM, nithya.srinivasan@sun.com 
>> <ma...@sun.com> wrote:
>>
>>> Hi Kevan
>>> I am doing command line deploy
>>> export/isqa/geronimo/bin/deploy.sh  --user system --password manager 
>>> deploy app.war  geronimo-web.xml
>>> I see the error in geronimo.out file
>>
>> K. And is the deploy command failing or succeeding? The error is 
>> occurring while we're scanning for annotations. If deploy is 
>> succeeding, you can ignore. If you can share your application, then 
>> hopefully somebody can investigate and fix the general problem...
>>
>> --kevan
>


Re: Errors when deploying

Posted by "nithya.srinivasan@sun.com" <Ni...@Sun.COM>.
The deploy fails.
I am deploying opensso, a opensource application.
You need to download the bits from https://opensso.dev.java.net/

Nithya
Kevan Miller wrote:
>
> On May 12, 2009, at 10:33 PM, nithya.srinivasan@sun.com 
> <ma...@sun.com> wrote:
>
>> Hi Kevan
>> I am doing command line deploy
>> export/isqa/geronimo/bin/deploy.sh  --user system --password manager 
>> deploy app.war  geronimo-web.xml
>> I see the error in geronimo.out file
>
> K. And is the deploy command failing or succeeding? The error is 
> occurring while we're scanning for annotations. If deploy is 
> succeeding, you can ignore. If you can share your application, then 
> hopefully somebody can investigate and fix the general problem...
>
> --kevan


Re: Errors when deploying

Posted by Kevan Miller <ke...@gmail.com>.
On May 12, 2009, at 10:33 PM, nithya.srinivasan@sun.com wrote:

> Hi Kevan
> I am doing command line deploy
> export/isqa/geronimo/bin/deploy.sh  --user system --password manager  
> deploy app.war  geronimo-web.xml
> I see the error in geronimo.out file

K. And is the deploy command failing or succeeding? The error is  
occurring while we're scanning for annotations. If deploy is  
succeeding, you can ignore. If you can share your application, then  
hopefully somebody can investigate and fix the general problem...

--kevan

Re: Errors when deploying

Posted by "nithya.srinivasan@sun.com" <Ni...@Sun.COM>.
Hi Kevan
I am doing command line deploy
export/isqa/geronimo/bin/deploy.sh  --user system --password manager 
deploy app.war  geronimo-web.xml
I see the error in geronimo.out file

Thanks
Nithya

Kevan Miller wrote:
>
> On May 12, 2009, at 6:39 PM, nithya.srinivasan@sun.com 
> <ma...@sun.com> wrote:
>
>> I am getting these errors when depolying my war.
>> Will appreciate any help.
>>
>> ServerConfig
>> 2.1.4
>> Build    2009.03.26-16:45:43.658-0400
>> Start Time    Tue May 12 15:15:03 PDT 2009
>> Up Time    20 minutes 36 seconds
>>
>> Operating System
>> Architecture    sparc
>> Name    SunOS
>> Version    5.9
>> Patch Level    unknown
>> Locale    en_US
>>
>> JVM
>> Java Version    1.5.0_01
>> Java Vendor    Sun Microsystems Inc.
>> Node    minibar/192.18.71.96
>> Current Memory Used    86.63 MB
>> Most Memory Used    86.63 MB
>> Total Memory Allocated    913.38 MB
>> Available Processors    4
>>
>> Exception
>> --------------
>> java.lang.Exception: Could not load 
>> 1/0/com/sun/codemodel/CodeWriter.class
>>       at 
>> org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:726
>> )
>>       at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:141)
>>       at 
>> org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
>> ices(WARWebServiceFinder.java:154)
>>       at 
>> org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
>> rPOJOWebServices(AdvancedWARWebServiceFinder.java:73)
>>       at 
>> org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
>> rWebServices(AdvancedWARWebServiceFinder.java:45)
>>       at 
>> org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
>> ices(WARWebServiceFinder.java:70)
>>       at 
>> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ
>> ices(JAXWSServiceBuilder.java:97)
>>       at 
>> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices
>> (JAXWSServiceBuilder.java:80)
>>       at 
>> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIn
>> itContext(AbstractWebModuleBuilder.java:364)
>>       at 
>> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext
>> (TomcatModuleBuilder.java:330)
>>       at 
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContex
>> t(SwitchingModuleBuilder.java:159)
>
> Hi Nithya,
> How are you deploying your app? Is the deploy failing or succeeding? 
> Where are you getting this error?
>
> --kevan


Re: Errors when deploying

Posted by Kevan Miller <ke...@gmail.com>.
On May 12, 2009, at 6:39 PM, nithya.srinivasan@sun.com wrote:

> I am getting these errors when depolying my war.
> Will appreciate any help.
>
> ServerConfig
> 2.1.4
> Build    2009.03.26-16:45:43.658-0400
> Start Time    Tue May 12 15:15:03 PDT 2009
> Up Time    20 minutes 36 seconds
>
> Operating System
> Architecture    sparc
> Name    SunOS
> Version    5.9
> Patch Level    unknown
> Locale    en_US
>
> JVM
> Java Version    1.5.0_01
> Java Vendor    Sun Microsystems Inc.
> Node    minibar/192.18.71.96
> Current Memory Used    86.63 MB
> Most Memory Used    86.63 MB
> Total Memory Allocated    913.38 MB
> Available Processors    4
>
> Exception
> --------------
> java.lang.Exception: Could not load 1/0/com/sun/codemodel/ 
> CodeWriter.class
>       at  
> org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:726
> )
>       at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java: 
> 141)
>       at  
> org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
> ices(WARWebServiceFinder.java:154)
>       at  
> org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
> rPOJOWebServices(AdvancedWARWebServiceFinder.java:73)
>       at  
> org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove
> rWebServices(AdvancedWARWebServiceFinder.java:45)
>       at  
> org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ
> ices(WARWebServiceFinder.java:70)
>       at  
> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ
> ices(JAXWSServiceBuilder.java:97)
>       at  
> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices
> (JAXWSServiceBuilder.java:80)
>       at  
> org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIn
> itContext(AbstractWebModuleBuilder.java:364)
>       at  
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext
> (TomcatModuleBuilder.java:330)
>       at  
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContex
> t(SwitchingModuleBuilder.java:159)

Hi Nithya,
How are you deploying your app? Is the deploy failing or succeeding?  
Where are you getting this error?

--kevan