4 Replies Latest reply on Nov 14, 2011 2:27 PM by Srinivasan Purushothaman

    Caused by: java.lang.ClassCastException      at java.lang.Class.cast(Class.java:2990)      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)

    Srinivasan Purushothaman Newbie

      Hi Guys,

       

      When i deploy my Web Application in JBoss 5.0.1 GA with Jbk 1.6 and Spring2.5, I get the below error.

       

      Caused by: java.lang.ClassCastException

          at java.lang.Class.cast(Class.java:2990)

          at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)

       

      Note: I have attached the logs for your reference, please let me know where Iam wrong.

        • 1. Re: Caused by: java.lang.ClassCastException      at java.lang.Class.cast(Class.java:2990)      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
          Ales Justin Master

          applicationContext-hibernate.xml is being picked up by HibernateDeployer.

           

          Either rename the file or disable this HIbernateDeployer.

          1 of 1 people found this helpful
          • 2. Re: Caused by: java.lang.ClassCastException      at java.lang.Class.cast(Class.java:2990)      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
            Srinivasan Purushothaman Newbie

            Hi Ales,

             

            Thanks for your reply, it solved the problem, but I face the following error now. I pasted my configuration below, could you please let me know what Iam doing wrong.

             

                                Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: comp not bound

             

            1. oracle-ds.xml

             

            <datasources>

              <local-tx-datasource>

                <jndi-name>my_ds</jndi-name>

                <connection-url>jdbc:oracle:thin:@myserver:port:sid</connection-url>

                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

                <user-name>username</user-name>

                <password>password</password>

                <min-pool-size>5</min-pool-size>

                <max-pool-size>50</max-pool-size>

                 <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>

                 <metadata>

                     <type-mapping>Oracle9i</type-mapping>

                  </metadata>

              </local-tx-datasource>

            </datasources>

             

            2. jboss-web.xml

             

            <?xml version="1.0" encoding="UTF-8"?>

            <jboss-web>

                <resource-ref>

                    <res-ref-name>my_ds</res-ref-name>

                    <res-type>oracle.jdbc.pool.OracleDataSource</res-type>

                    <jndi-name>java:/my_ds</jndi-name>

                </resource-ref>

            </jboss-web>

             

            3. web.xml

             

            <resource-ref>

                    <description>My Data Source</description>

                    <res-ref-name>my_ds</res-ref-name>

                    <res-type>oracle.jdbc.pool.OracleDataSource</res-type>

                    <res-auth>Container</res-auth>

                </resource-ref>

             

            4. applicationContext.xml

             

                 <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">

                     <property name="jndiName" value="java:comp/env/my_ds"/> 

                </bean>

             

             

            Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: comp not bound

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:482)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)

                ... 55 more

            Caused by: javax.naming.NameNotFoundException: comp not bound

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

                at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

                at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)

                at javax.naming.InitialContext.lookup(InitialContext.java:392)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:445)

                ... 58 more

            2011-11-14 08:39:48,721 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Removed component jboss.web.deployment:war=/myappcore from vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/

            2011-11-14 08:39:48,721 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Removed component jboss.jacc:id="vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/",service=jacc from vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/

            2011-11-14 08:39:48,721 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/ state=PreReal mode=Manual requiredState=Real

            org.jboss.deployers.spi.DeploymentException: URL file:/C:/Documents and Settings/myname/My Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/ deployment failed

                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:318)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                at $Proxy36.start(Unknown Source)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

                at org.jboss.Main.boot(Main.java:209)

                at org.jboss.Main$1.run(Main.java:547)

                at java.lang.Thread.run(Thread.java:619)

            Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: comp not bound

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:482)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)

                ... 55 more

            Caused by: javax.naming.NameNotFoundException: comp not bound

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

                at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

                at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)

                at javax.naming.InitialContext.lookup(InitialContext.java:392)

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:445)

                ... 58 more

            2011-11-14 08:39:48,751 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (main) ClassLoaderDomain@1706444{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/} unregisterClassLoader BaseClassLoader@1c6c5b7{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/}

            2011-11-14 08:39:48,751 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] (main) UnifiedLoaderRepository removed(false) null

            2011-11-14 08:39:48,751 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderPolicy] (main) VFSClassLoaderPolicy@de9738{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/} shutdown!

            2011-11-14 08:39:48,751 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] (main) BaseClassLoader@1c6c5b7{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/} shutdown!

            2011-11-14 08:39:48,761 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (main) ClassLoaderDomain@1706444{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/} shutdown!

            2011-11-14 08:39:48,761 DEBUG [org.jboss.classloader.spi.ClassLoaderSystem] (main) DefaultClassLoaderSystem@35e6e3 unregistered domain=ClassLoaderDomain@1706444{name=vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@c9630a{DefaultDomain}}

            2011-11-14 08:39:48,761 DEBUG [org.jboss.classloading.spi.dependency.Domain] (main) org.jboss.classloading.spi.dependency.Domain@f7e9dd{vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/} remove module VFSDeploymentClassLoaderPolicyModule vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/:0.0.0

            2011-11-14 08:39:48,761 DEBUG [org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer] (main) Removing dynamic class root for vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/

            2011-11-14 08:39:48,781 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ejb3-interceptors-aop.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/cache-invalidation-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/connection-factories-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/management/console-mgr.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/destinations-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ejb2-timer-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/hsqldb-persistence-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/http-invoker.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jbossweb.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jbossws.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jmx-invoker-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jmx-remoting.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jsr88-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/legacy-invokers-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/legacy-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/mail-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/messaging-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/monitoring-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/properties-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/remoting-bisocket-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/schedule-manager-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/scheduler-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/sqlexception-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/transaction-service.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/uuid-key-generator.sar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ejb2-container-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ejb3-connectors-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ejb3-container-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/hdscanner-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jca-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/messaging-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/profileservice-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/remoting-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/security/security-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/security/security-policies-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/transaction-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/vfs-jboss-beans.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/hsqldb-ds.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/messaging/jms-ds.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/oracle-ds.xml

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/ROOT.war/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/authentication-admin.properties

            2011-11-14 08:39:48,791 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/authentication.properties

            2011-11-14 08:39:48,801 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

             

            DEPLOYMENTS IN ERROR:

              Deployment "vfsfile:/C:/Documents%20and%20Settings/myname/My%20Documents/jboss-5.0.1.GA/jboss-5.0.1.GA/server/default/deploy/myappcore.war/" is in error due to the following reason(s): javax.naming.NameNotFoundException: comp not bound

             

            2011-11-14 08:39:48,801 DEBUG [org.jboss.bootstrap.microcontainer.ServerImpl] (main) Installing life thread Thread[JBossLifeThread,5,jboss]

            2011-11-14 08:39:48,801 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatService] (main) Saw org.jboss.system.server.started notification, starting connectors

            2011-11-14 08:39:48,841 INFO  [org.apache.coyote.http11.Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

            2011-11-14 08:39:48,921 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

            2011-11-14 08:39:48,931 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 2m:1s:935ms

            • 4. Re: Caused by: java.lang.ClassCastException      at java.lang.Class.cast(Class.java:2990)      at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
              Srinivasan Purushothaman Newbie

              Hi Ales,

               

              I tried loading the datasource bean with lazy-init="true" and I face the same problem.

               

                 <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true" >

                       <property name="jndiName" value="java:comp/env/my_ds"/> 

                  </bean>

               

               

              I guess it may be a Jboss Naming Service port conflict issue, so looking inside JBoss5.0.1GA/server/default/conf/jboss-service.xml to change.

               

              Lets see...