You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Kristian Köhler <Kr...@gmx.de> on 2004/09/17 10:43:25 UTC

Problem building from subversion

Hi

after refreshing from scm and running rebuild i get an error (attached). 
   Am I alone? ;-)


Kristian


-- 8< ---

     [echo] Deploying Apache Tomcat configuration
     [java] org.apache.geronimo.deployment.DeploymentException: Unable 
to create GBean from class org.apache.geronimo.tomcat.TomcatGBean
     [java]      at 
org.apache.geronimo.deployment.service.GBeanBuilder.<init>(GBeanBuilder.java:49)
     [java]      at 
org.apache.geronimo.deployment.service.GBeanHelper.addGbean(GBeanHelper.java:31)
     [java]      at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfiguration(ServiceConfigBuilder.java:134)
     [java]      at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfiguration(ServiceConfigBuilder.java:96)
     [java]      at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfiguration(ServiceConfigBuilder.java:82)
     [java]      at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder$$FastClassByCGLIB$$9f173be6.invoke(<generated>)
     [java]      at 
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
     [java]      at 
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
     [java]      at 
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
     [java]      at 
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:744)
     [java]      at 
org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
     [java]      at 
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
     [java]      at 
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
     [java]      at 
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>)
     [java]      at 
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:198)
     [java]      at 
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
     [java]      at 
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
     [java]      at 
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
     [java]      at 
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
     [java]      at 
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:765)
     [java]      at 
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
     [java]      at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
     [java]      at 
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
     [java]      at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
     [java]      at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
     [java]      at 
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205)
     [java]      at 
mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
     [java]      at 
org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231)
     [java]      at 
org.apache.geronimo.system.main.CommandLine.main(CommandLine.java:93)
     [java] Caused by: 
org.apache.geronimo.gbean.InvalidConfigurationException: Could not load 
class org.apache.geronimo.tomcat.TomcatGBean
     [java]      at 
org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo(GBeanInfo.java:49)
     [java]      at 
org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:386)
     [java]      at 
org.apache.geronimo.deployment.service.GBeanBuilder.<init>(GBeanBuilder.java:47)
     [java]      ... 28 more
     [java] Caused by: java.lang.ClassNotFoundException: 
org.apache.geronimo.tomcat.TomcatGBean
     [java]      at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
     [java]      at java.security.AccessController.doPrivileged(Native 
Method)
     [java]      at 
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
     [java]      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
     [java]      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
     [java]      at 
org.apache.geronimo.gbean.GBeanInfo.getGBeanInfo(GBeanInfo.java:47)
     [java]      ... 30 more

BUILD FAILED
File...... d:\work\geronimo\geronimo\maven.xml
Element... maven:reactor
Line...... 238
Column.... 27
Unable to obtain goal [default] -- 
d:\work\geronimo\geronimo\modules\tomcat\maven.xml:86:34: <java> Java 
returned: 2
Total time: 9 minutes 2 seconds
Finished at: Fri Sep 17 10:31:29 CEST 2004


Re: Problem building from subversion

Posted by Jacek Laskowski <jl...@apache.org>.
Gianny Damour wrote:

> This problem is fixed. It was due to the fact that the geronimo-tomcat 
> artifact was not copied to the geronimo repository prior to deploy 
> TomcatGBean.

Thanks Gianny!

> BTW, I have noticed a couple of "issues":
> * there is an indirect dependency between Catalina (the class) and the 
> javax.management package. I have discovered this problem when mounting 
> the geronimo-tomcat module within Eclipse. So we will need to declare a 
> new dependency; and

I've noticed it too, but don't see a need to declare anything yet 
(perhaps, because of the build order, it's still lurking and waiting to 
show up).

> * to some extent we are lucky to have a build of geronimo-tomcat after 
> assembly. Indeed, geronimo-tomcat assumes that the assembly module has 
> been built, yet it does not declare a dependency to force a correct 
> build order. I think that geronimo-tomcat should be installed like the 
> other modules (e.g. geronimo-jetty).

Yes, that's totally true. There're a lot of work to do and I hope the 
things you've raised will encourage someone to jump in and help with the 
stuff. That's a fabulous time to contribute for anyone who keeps asking 
yourself what to work on.

> Gianny

Jacek


Re: Problem building from subversion

Posted by Gianny Damour <gi...@optusnet.com.au>.
On 18/09/2004 8:41 AM, Jacek Laskowski wrote:

> Kristian Köhler wrote:
>
>> Hi
>>
>> after refreshing from scm and running rebuild i get an error 
>> (attached).   Am I alone? ;-)
>
>
> Oops, I'm checking it out....

This problem is fixed. It was due to the fact that the geronimo-tomcat 
artifact was not copied to the geronimo repository prior to deploy 
TomcatGBean.

BTW, I have noticed a couple of "issues":
* there is an indirect dependency between Catalina (the class) and the 
javax.management package. I have discovered this problem when mounting 
the geronimo-tomcat module within Eclipse. So we will need to declare a 
new dependency; and
* to some extent we are lucky to have a build of geronimo-tomcat after 
assembly. Indeed, geronimo-tomcat assumes that the assembly module has 
been built, yet it does not declare a dependency to force a correct 
build order. I think that geronimo-tomcat should be installed like the 
other modules (e.g. geronimo-jetty).

Thanks,
Gianny

Re: Problem building from subversion

Posted by Jacek Laskowski <jl...@apache.org>.
Kristian Köhler wrote:

> Hi
> 
> after refreshing from scm and running rebuild i get an error (attached). 
>   Am I alone? ;-)

Oops, I'm checking it out....

> Kristian

Jacek