geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-2221) java.lang.ClassCastException while installing Servlet Examples
Date Thu, 14 Dec 2006 04:04:21 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-2221?page=comments#action_12458358 ] 
            
Prasad Kashyap commented on GERONIMO-2221:
------------------------------------------

I successfully deployed jsp examples on both tomcat and jetty.

I successfully deployed servlet examples on tomcat.

servlet-examples-jetty deploys successfully but has error starting -

Using GERONIMO_BASE:   /home/prasad/geronimo/1.2/assemblies/geronimo-jetty-j2ee/target/geronimo-jetty-j2ee-1.2-SNAPSHOT
Using GERONIMO_HOME:   /home/prasad/geronimo/1.2/assemblies/geronimo-jetty-j2ee/target/geronimo-jetty-j2ee-1.2-SNAPSHOT
Using GERONIMO_TMPDIR: /home/prasad/geronimo/1.2/assemblies/geronimo-jetty-j2ee/target/geronimo-jetty-j2ee-1.2-SNAPSHOT/var/temp
Using JRE_HOME:        /usr/local/java/jre
org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car
failed
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:544)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:338)
	at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:168)
	at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
	at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
	at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
	at sun.rmi.transport.Transport$1.run(Transport.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:444)
	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
	... 35 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car
failed to start due to the following reasons:
  The service J2EEApplication=null,WebFilter=Servlet Mapped Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=ServletWebFilterMapping,name=invoker
did not start because org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car?J2EEApplication=null,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=Servlet,name=invoker
did not start.
  The service J2EEApplication=null,WebFilter=Path Mapped Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=URLWebFilterMapping,name="/servlet/\*"
did not start because org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car?J2EEApplication=null,WebFilter=Servlet%20Mapped%20Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=ServletWebFilterMapping,name=invoker
did not start.

	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:407)
	... 37 more
    Error: Operation failed: start of    org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car
   failed
    org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car
 failed
    	at    org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:544)
    	at    org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
    	at    org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
    	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    	at    org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    	at    org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
    	at    org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
    	at    org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
    	at    org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:338)
    	at    org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
    	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    	at    org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    	at    org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
    	at    org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
    	at    org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
    	at    org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:168)
    	at    com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    	at     com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    	at    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    	at    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    	at    javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
    	at    javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    	at    javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at    javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
    	at    javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
    	at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
    	at    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at    sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
    	at sun.rmi.transport.Transport$1.run(Transport.java:153)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    	at    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    	at    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    	at java.lang.Thread.run(Thread.java:595)

    Caused by: org.apache.geronimo.kernel.config.InvalidConfigException:
    Unknown start exception

    	at    org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:444)
    	at    org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
    	at    org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)

    	... 35 more

    Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
    Configuration
    org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car
    failed to start due to the following reasons:

      The service J2EEApplication=null,WebFilter=Servlet Mapped
    Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=ServletWebFilterMapping,name=invoker
    did not start because
    org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car?J2EEApplication=null,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=Servlet,name=invoker
    did not start.

      The service J2EEApplication=null,WebFilter=Path Mapped
    Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=URLWebFilterMapping,name="/servlet/\*"
    did not start because
    org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car?J2EEApplication=null,WebFilter=Servlet%20Mapped%20Filter,WebModule=org.apache.geronimo.configs/servlet-examples-jetty/1.2-SNAPSHOT/car,j2eeType=ServletWebFilterMapping,name=invoker
    did not start.


    	at    org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:407)

    	... 37 more


> java.lang.ClassCastException while installing Servlet Examples
> --------------------------------------------------------------
>
>                 Key: GERONIMO-2221
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2221
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: web
>    Affects Versions: 1.2
>         Environment: cygwin, java 1.4, Revision: 424964
>            Reporter: Jacek Laskowski
>
> http://localhost:8080/ -> Servlet Examples -> click here (i.e. http://localhost:8080/servlets-examples/?install=true)
->
> {code}
> ############################################################
> # Installed configuration
> #   id = geronimo/servlets-examples-tomcat/1.0/car
> #   location = C:\geronimo-1.2-SNAPSHOT\repository\geronimo\servlets-examples-tomcat\1.0\servlets-examples-tomcat-1.0.car
> ############################################################
> 10:57:46,031 WARN  [ConfigurationStoreUtil] Checksum file not found: C:\geronimo-1.2-SNAPSHOT\repository\geronimo\servlets-examples-tomcat\1.0\servlets-examples-tomcat-1.0.car\META
> -INF\config.ser.sha1
> 10:57:46,046 ERROR [[servlet_sample_installer]] Servlet.service() for servlet servlet_sample_installer
threw exception
> java.lang.ClassCastException
>         at org.apache.geronimo.kernel.config.SerializedConfigurationMarshaler.readConfigurationData(SerializedConfigurationMarshaler.java:57)
>         at org.apache.geronimo.kernel.config.ConfigurationUtil.readConfigurationData(ConfigurationUtil.java:167)
>         at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.loadConfiguration(RepositoryConfigurationStore.java:113)
> {code}
> It happens on Jetty, too.
> The config.ser file of this example contains a raw GBeanInfo instead of a ConfigurationData
wrapping a GBeanInfo. It seems to me that the car file format of this example is incorrect.
I will investigate further a potential root cause.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message