geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohanraj Loganathan <mohanra...@gmail.com>
Subject Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)
Date Tue, 12 May 2009 11:17:28 GMT
Sorry i over looked the version.

Now i downloaded the latest stable source (Geronimo 2.1.4). Building failed
with Harmony JDK.  I am getting marshal exception. Any thoughts on this?

*Error/Exception: *

[INFO] [car:prepare-metadata]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null

class org.apache.geronimo.system.plugin.model.LicenseType nor any of its
super class is known to this context.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
0)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:331)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
        at java.lang.reflect.Method.invoke(Method.java:317)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException
        at
org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:137)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
0)
        ... 13 more
Caused by: javax.xml.bind.MarshalException
 - with linked exception:
[javax.xml.bind.JAXBException: class
org.apache.geronimo.system.plugin.model.LicenseType nor any of its super
class is k
nown to this context.]
        at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:295)
        at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:221)
        at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:70)
        at
org.apache.geronimo.system.plugin.PluginXmlUtil.writePluginMetadata(PluginXmlUtil.java:81)
        at
org.apache.geronimo.mavenplugins.car.PluginMetadataGeneratorMojo.doExecute(PluginMetadataGeneratorMojo.java:2
34)
        at
org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:122)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        ... 15 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.geronimo.system.plugin.model.LicenseType nor any of its super
class is known to this context.
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:223)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:238)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:587)
        at
com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)

        at
com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
        at
com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
        at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:93)
        at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:127)
        at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:244)
        at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:251)
        at
com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:33)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:461)
        at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:292)
        at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:221)
        ... 20 more
Caused by: javax.xml.bind.JAXBException: class
org.apache.geronimo.system.plugin.model.LicenseType nor any of its super
class is known to this context.
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:507)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:582)
        at
com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)

        ... 32 more

On Wed, May 6, 2009 at 9:12 AM, Jarek Gawor <jgawor@gmail.com> wrote:

> Is there a reason why you're trying to build 2.1.0 instead of our
> latest released version 2.1.4?
>
> Jarek
>
> On Mon, May 4, 2009 at 7:23 AM, Mohanraj Loganathan
> <mohanraj.l@gmail.com> wrote:
> > Hello,
> >
> > I was trying to build geronimo2.1.0 version of source with sunJDK5. I end
> up
> > with the following failure
> >
> > [INFO] Compiling 24 source files to
> > D:\g\2.1.0\plugins\webservices\geronimo-webservices\target\classes
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Compilation failure
> >
> D:\g\2.1.0\plugins\webservices\geronimo-webservices\src\main\java\org\apache\geronimo\webservices\WebServiceContainerInvoker.java:[214,27]
> > cannot find symbol
> > symbol  : method getContentType()
> > location: interface javax.servlet.http.HttpServletResponse
> >
> >
> >
> >
> D:\g\2.1.0\plugins\webservices\geronimo-webservices\src\main\java\org\apache\geronimo\webservices\WebServiceContainerInvoker.java:[214,27]
> > cannot find symbol
> > symbol  : method getContentType()
> > location: interface javax.servlet.http.HttpServletResponse
> >
> >
> > Please help me out. Am i missing anything?
> >
> > --
> > Mohan
> >
>



-- 
Mohan

Mime
View raw message