geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hakan Junior (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5807) JSF 2.0 Deployment Problem
Date Fri, 18 Feb 2011 09:58:38 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996312#comment-12996312
] 

Hakan Junior commented on GERONIMO-5807:
----------------------------------------

Hi all,

We set up our application with myfaces and everything works well on Tomcat 6.0.26. Then we
tried to deploy Geronimo 3 (17 Feb 2011). First we bundled myfaces jars in the web.xml but
couldnt deploy. Then we deleted myfaces jars from lib folder and also withOUT geronimo-web.xml.
It could be deployed and started. But the classloader says log4j classes couldnt be found.
But we are sure it exists.
Then we use geronimo-web.xml (shown at the end) and deployed again. It throws;
Caused by: java.lang.ClassCastException: cannot assign instance of javax.management.ObjectName
to field org.apache.geronimo.gbean.AbstractName.objectName of type javax.management.ObjectName
in instance of org.apache.geronimo.gbean.AbstractName
        at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2039)
        at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1952)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
        at org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:354)
        at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:320)
        at org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:125)
        ... 30 more
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:195)
        ... 14 more

Here is the geronimo-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" 
    xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
    
    <sys:environment>
   
        <sys:inverse-classloading/>
   
    </sys:environment>

</web-app>

> JSF 2.0 Deployment Problem
> --------------------------
>
>                 Key: GERONIMO-5807
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5807
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment, Tomcat
>    Affects Versions: 3.0-M1
>         Environment: Ubuntu 10.10, Sun Jdk 1.6.0_22 32 bit, PrimeFaces 2.2 Final, Mojarra
2.0.3
>            Reporter: Hakan Junior
>         Attachments: hakan.war
>
>
> While deploying my ear file, geronimo raises following error:
> The application was not deployed.
> loader constraint violation: when resolving overridden method "com.sun.faces.ext.taglib.FocusTag.setProperties(Ljavax/faces/component/UIComponent;)V"
the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) of
the current class, com/sun/faces/ext/taglib/FocusTag, and its superclass loader (instance
of org/apache/felix/framework/ModuleImpl$ModuleClassLoader), have different Class objects
for the type javax/faces/component/UIComponent used in the signature
> java.lang.LinkageError: loader constraint violation: when resolving overridden method
"com.sun.faces.ext.taglib.FocusTag.setProperties(Ljavax/faces/component/UIComponent;)V" the
class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) of the
current class, com/sun/faces/ext/taglib/FocusTag, and its superclass loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader),
have different Class objects for the type javax/faces/component/UIComponent used in the signature
> 	at java.lang.Class.getDeclaredMethods0(Native Method)
> 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> 	at java.lang.Class.getDeclaredMethods(Class.java:1791)
> 	at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:149)
> 	at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:197)
> 	at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:166)
> 	at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:582)
> 	at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:175)
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:690)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:250)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:856)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
> 	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> 	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> 	at java.lang.Thread.run(Thread.java:662)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message