1 2 Previous Next 22 Replies Latest reply on Mar 22, 2009 8:34 AM by jaikiran

    A ClassCastException

      Hi,
      I'm new to JBoss, and till now only I've used Tomcat.
      However I wanted to deploy some application on JBoss, which I've previously deployed successfully on Tomcat.
      The simple servlet/Jsp based application, I can engage on IBoss.
      But any of my other application, inside what I use additional technologies like:
      Struts2, Hibernate 3, String 2x, which also successfully were deployed on Tomcat, cannot be engaged on JBoss.
      The exception I get is

      org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
       at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
       at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552)
       at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
       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:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       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:545)
       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: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
       at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
       at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
       ... 62 more
      Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
       at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
       at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
       ... 64 more
      


      Hpowever, if I remove Xerces.jar from my application's lib directory, and redeploy application, I get little changed exception :
      
      ERROR ContextLoader:Context initialization failed
      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)
       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)
       at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
       at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)
       at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
       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:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       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:545)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
       at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
       at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:92)
       at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:72)
       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean
      2009-03-18 13:36:25,515 INFO [STDOUT] (HDScanner) Definitions(XmlBeanDefinitionReader.java:361)
       ... 75 more
      
      


      I would appreciate if someone indicate at problem solution (well, a few days I'm trying to resolve the problem ).
      Tnahks in advance, anyway!

        • 1. Re: A ClassCastException

          I have done everything I could found from either books, or jboss specification, or from any place on net, and it still wot work. I've configured server.xml file to use isolated lcass loading, and also make modification in jboss-web.xml file to perform isolated classs loading but it wont!?!?
          This is the content of mentioned files:

          
          server.xml
          
          <property name="java2ClassLoadingCompliance">false</property>
           <!-- A flag indicating if the JBoss Loader should be used. This loader
           uses a unified class loader as the class loader rather than the tomcat
           specific class loader.
           The default is false to ensure that wars have isolated class loading
           for duplicate jars and jsp files.
           -->
           <property name="useJBossWebLoader">false</property>
           <!-- The list of package prefixes that should not be loaded without
           delegating to the parent class loader before trying the web app
           class loader. The packages listed here are those tha are used by
           the web container implementation and cannot be overriden. The format
           is a comma separated list of the package names. There cannot be any
           whitespace between the package prefixes.
           This setting only applies when UseJBossWebLoader=false.
           -->
          
          


          and

          
          jboss-web.xml
          
          
          <jboss-web>
           <class-loading java2ClassLoadingCompliance="false">
           <loader-repository>
           rs.sler:archive=afrodom.war
           <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
           </loader-repository>
           </class-loading>
          </jboss-web>
          
          
          


          and this is all configuration I could fined on mentioned locations and it wont work. I would really appreciate HELP!?

          • 2. Re: A ClassCastException
            jaikiran

            Which version of JBossAS do you use? And please post the output of

            jar -tf yourwar.war


            • 3. Re: A ClassCastException

              the outpu is :

              
              META-INF/
              META-INF/MANIFEST.MF
              common/
              common/error.jsp
              common/login_form.jsp
              common/welcome.jsp
              index.html
              WEB-INF/
              WEB-INF/applicationContext.xml
              WEB-INF/classes/
              WEB-INF/classes/applicationContext.xml
              WEB-INF/classes/base/
              WEB-INF/classes/base/Enter.class
              WEB-INF/classes/base/Enter.java
              WEB-INF/classes/log4j.properties
              WEB-INF/classes/mini_app/
              WEB-INF/classes/mini_app/Authenticate_interceptor.class
              WEB-INF/classes/mini_app/dao/
              WEB-INF/classes/mini_app/dao/AbstractSpringDao.class
              WEB-INF/classes/mini_app/dao/DataAccessLayerException.class
              WEB-INF/classes/mini_app/dao/SlerDao.class
              WEB-INF/classes/mini_app/genesis.xml
              WEB-INF/classes/mini_app/Logger.class
              WEB-INF/classes/mini_app/Login-validation.xml
              WEB-INF/classes/mini_app/Login.class
              WEB-INF/classes/mini_app/Message.class
              WEB-INF/classes/mini_app/Password_Integrity.class
              WEB-INF/classes/mini_app/PhoneNumber_Checker.class
              WEB-INF/classes/mini_app/User-validation.xml
              WEB-INF/classes/mini_app/User.class
              WEB-INF/classes/mini_app/Username_Checker.class
              WEB-INF/classes/mini_app/Welcome.class
              WEB-INF/classes/oscache.properties
              WEB-INF/classes/struts.xml
              WEB-INF/classes/validators.xml
              WEB-INF/ehcache.xml
              WEB-INF/hibernate.cfg.xml
              WEB-INF/lib/
              WEB-INF/lib/antlr-2.7.6.jar
              WEB-INF/lib/asm-attrs.jar
              WEB-INF/lib/asm.jar
              WEB-INF/lib/bsh-2.0b1.jar
              WEB-INF/lib/c3p0-0.9.1.jar
              WEB-INF/lib/catalina-root.jar
              WEB-INF/lib/cglib-2.1.3.jar
              WEB-INF/lib/commons-beanutils-1.6.jar
              WEB-INF/lib/commons-collections-3.2.jar
              WEB-INF/lib/commons-dbcp.jar
              WEB-INF/lib/commons-digester-1.8.jar
              WEB-INF/lib/commons-fileupload-1.1.1.jar
              WEB-INF/lib/commons-io-1.2.jar
              WEB-INF/lib/commons-logging-1.1.jar
              WEB-INF/lib/commons-pool.jar
              WEB-INF/lib/concurrent-1.3.2.jar
              WEB-INF/lib/connector.jar
              WEB-INF/lib/dom4j-1.6.1.jar
              WEB-INF/lib/ehcache-1.2.3.jar
              WEB-INF/lib/ejb3-persistence.jar
              WEB-INF/lib/freemarker-2.3.8.jar
              WEB-INF/lib/hibernate-annotations.jar
              WEB-INF/lib/hibernate-cglib-repack-2.1_3.jar
              WEB-INF/lib/hibernate-commons-annotations.jar
              WEB-INF/lib/hibernate-entitymanager.jar
              WEB-INF/lib/hibernate-search.jar
              WEB-INF/lib/hibernate-tools.jar
              WEB-INF/lib/hibernate-validator.jar
              WEB-INF/lib/hibernate3.jar
              WEB-INF/lib/hsqldb.jar
              WEB-INF/lib/izbrsisao dom4j.xml fajl.txt
              WEB-INF/lib/jaas.jar
              WEB-INF/lib/javassist-3.4.GA.jar
              WEB-INF/lib/jdbc2_0-stdext.jar
              WEB-INF/lib/jgroups-2.2.8.jar
              WEB-INF/lib/jta-1.1.jar
              WEB-INF/lib/jtidy-r8-20060801.jar
              WEB-INF/lib/log4j-1.2.15.jar
              WEB-INF/lib/lucene-core-2.2.0.jar
              WEB-INF/lib/ognl-2.6.11.jar
              WEB-INF/lib/oscache-2.1.jar
              WEB-INF/lib/persistence.jar
              WEB-INF/lib/proxool-0.8.3.jar
              WEB-INF/lib/slf4j-api-1.5.6.jar
              WEB-INF/lib/slf4j-log4j12-1.5.6.jar
              WEB-INF/lib/spring.jar
              WEB-INF/lib/standard.jar
              WEB-INF/lib/struts2-core-2.0.11.jar
              WEB-INF/lib/struts2-spring-plugin-2.0.11.jar
              WEB-INF/lib/swarmcache-1.0rc2.jar
              WEB-INF/lib/xercesImpl.jar
              WEB-INF/lib/xml-apis-1.0.b2.jar
              WEB-INF/lib/xwork-2.0.4.jar
              WEB-INF/web.xml
              
              


              So the application works just fine on Tomcat 5.5.
              The version of JBoss I use is -jboss-5.0.0.GA. Just as I said, I configured any option I could find either in book - JBoss in Action, either in JBoss docs. about classloading issue. So what is the problem???

              • 4. Re: A ClassCastException
                jaikiran

                That output shows that you do not have the jboss-web.xml in the WEB-INF folder of the war :)

                • 5. Re: A ClassCastException

                  No, it is there. This is just one of my testing application (here I forgot to create one), and this is it's content:

                  
                  <jboss-web>
                   <class-loading java2ClassLoadingCompliance="false">
                   <loader-repository>
                   rs.sler:loader=afrodom.war
                   <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                   </loader-repository>
                   </class-loading>
                  </jboss-web>
                  


                  The rest of content is the same...But nothing still...

                  • 6. Re: A ClassCastException

                    Is it good configuration in jboss-web.xml? the afrodom.war is war which I've tried to deploy.

                    • 7. Re: A ClassCastException
                      jaikiran

                      The configuration looks good. And i believe you have really packaged it in the war file. Is the exception that you seeing the same as the one you posted in the first post? If not, please post the new stacktrace.

                      Finally add -verbose:class to the JAVA_OPTS section of run.bat (run.conf for *nix OS). This will print out the jar files from which the classes are being loaded. When starting the server redirect the output to some file (the verbose class option prints a lot of information):

                      run.bat > classloading.txt


                      Then navigate to your application to reproduce the exception. Finally open the classloading.txt file containing the logs and search for the offending class. You will find the jar(s) that are being used to load the class. That will give you an idea about what's going on.


                      • 8. Re: A ClassCastException

                        This is the result when I run

                        run > classloading.txt

                        There is one thing, I didn't configure any JAVA_OPTS environment variable ( I would appreciate if you refer me how to do such), but nonetheless, printed result of command you gave mem include that variable?! Here is result :
                        
                        ===============================================================================
                        
                         JBoss Bootstrap Environment
                        
                         JBOSS_HOME: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA
                        
                         JAVA: E:\Program Files\Java\jdk1.6.0_10\bin\java
                        
                         JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
                        
                         CLASSPATH: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\bin\run.jar
                        
                        ===============================================================================
                        
                        16:50:45,375 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                        16:50:45,390 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
                        16:50:45,390 INFO [ServerImpl] Bootstrap URL: null
                        16:50:45,390 INFO [ServerImpl] Home Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA
                        16:50:45,390 INFO [ServerImpl] Home URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/
                        16:50:45,390 INFO [ServerImpl] Library URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/lib/
                        16:50:45,390 INFO [ServerImpl] Patch URL: null
                        16:50:45,390 INFO [ServerImpl] Common Base URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/common/
                        16:50:45,390 INFO [ServerImpl] Common Library URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/common/lib/
                        16:50:45,390 INFO [ServerImpl] Server Name: default
                        16:50:45,390 INFO [ServerImpl] Server Base Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server
                        16:50:45,390 INFO [ServerImpl] Server Base URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/
                        16:50:45,390 INFO [ServerImpl] Server Config URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/conf/
                        16:50:45,390 INFO [ServerImpl] Server Home Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default
                        16:50:45,390 INFO [ServerImpl] Server Home URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/
                        16:50:45,390 INFO [ServerImpl] Server Data Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\data
                        16:50:45,406 INFO [ServerImpl] Server Library URL: file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/lib/
                        16:50:45,406 INFO [ServerImpl] Server Log Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\log
                        16:50:45,406 INFO [ServerImpl] Server Native Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\tmp\native
                        16:50:45,406 INFO [ServerImpl] Server Temp Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\tmp
                        16:50:45,406 INFO [ServerImpl] Server Temp Deploy Dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\tmp\deploy
                        16:50:48,687 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
                        16:50:50,750 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
                        16:50:50,765 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
                        16:50:51,921 INFO [CopyMechanism] VFS temp dir: D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server\default\tmp
                        16:50:51,921 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                        16:50:58,281 INFO [ServerInfo] Java version: 1.6.0_10-ea,Sun Microsystems Inc.
                        16:50:58,281 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b11,Sun Microsystems Inc.
                        16:50:58,281 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                        16:50:58,421 INFO [JMXKernel] Legacy JMX core initialized
                        16:51:09,375 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1966070(root=D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
                        16:51:09,375 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1966070(root=D:\Dokumenti\RADOVI\JAVA\Jboss server\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
                        16:51:09,375 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@79df82{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
                        16:51:24,484 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                        16:51:51,343 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
                        16:51:51,343 INFO [NativeServerConfig] 3.0.4.SP1
                        16:52:57,062 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
                        16:53:00,781 INFO [MailService] Mail Service bound to java:/Mail
                        16:53:10,171 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
                        16:53:10,250 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
                        16:53:12,125 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
                        16:53:12,125 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
                        16:53:15,828 INFO [TransactionManagerService] Initializing recovery manager
                        16:53:17,203 INFO [TransactionManagerService] Recovery manager configured
                        16:53:17,203 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
                        16:53:17,296 INFO [TransactionManagerService] Starting transaction recovery manager
                        16:53:21,031 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
                        16:53:21,046 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
                        16:53:21,046 INFO [StandardService] Starting service jboss.web
                        16:53:21,062 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
                        16:53:21,187 INFO [Catalina] Server startup in 704 ms
                        16:53:21,265 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
                        16:53:25,109 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
                        16:53:25,890 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
                        16:53:27,984 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
                        16:53:29,093 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
                        16:53:29,250 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
                        16:53:30,296 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
                        16:53:31,421 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
                        16:53:31,812 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
                        16:53:31,890 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
                        16:53:31,890 INFO [RAMJobStore] RAMJobStore initialized.
                        16:53:31,890 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
                        16:53:31,890 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
                        16:53:31,890 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                        16:53:35,531 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                        16:53:36,453 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
                        16:53:36,656 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
                        16:53:36,656 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
                        16:53:36,656 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
                        16:53:36,750 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
                        16:53:36,750 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
                        16:53:36,750 INFO [JobStoreCMT] JobStoreCMT initialized.
                        16:53:36,765 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
                        16:53:36,765 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
                        16:53:36,796 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
                        16:53:36,796 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
                        16:53:36,796 INFO [JobStoreCMT] Recovery complete.
                        16:53:36,796 INFO [JobStoreCMT] Removed 0 'complete' triggers.
                        16:53:36,796 INFO [JobStoreCMT] Removed 0 stale fired job entries.
                        16:53:36,812 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
                        16:53:37,703 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
                        16:53:38,062 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
                        16:53:38,062 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
                        16:53:38,328 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                        16:53:38,328 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1fd7514 started
                        16:53:38,375 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                        16:53:38,375 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                        16:53:38,375 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1c377f3 started
                        16:53:38,375 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                        16:53:38,375 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
                        16:53:38,375 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1321f9b started
                        16:53:38,843 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                        16:53:38,906 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
                        16:53:47,421 INFO [TomcatDeployment] deploy, ctxPath=/afrodom, vfsUrl=afrodom.war
                        16:53:49,718 ERROR [JBossContextConfig] XML error parsing: context.xml
                        org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538)
                         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
                         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                         at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         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:146)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                         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:545)
                         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: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
                         at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
                         ... 62 more
                        Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
                         ... 64 more
                        16:53:49,734 ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
                        org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:539)
                         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
                         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                         at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         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:146)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                         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:545)
                         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: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
                         at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
                         ... 62 more
                        Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
                         ... 64 more
                        16:53:49,734 ERROR [JBossContextConfig] XML error parsing: WEB-INF/context.xml
                        org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552)
                         at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:542)
                         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
                         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                         at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         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:146)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                         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:545)
                         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: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
                         at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
                         at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
                         ... 62 more
                        Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
                         at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
                         ... 64 more
                        16:53:54,656 ERROR [ContextConfig] Marking this application unavailable due to previous error(s)
                        16:53:54,671 ERROR [StandardContext] Context [/afrodom] startup failed due to previous errors
                        16:53:54,671 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/afrodom state=Create mode=Manual requiredState=Installed
                        org.jboss.deployers.spi.DeploymentException: URL file:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/tmp/deploy/afrodom47714-exp.war/ deployment failed
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:388)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         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:146)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                         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:545)
                         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)
                        16:53:54,687 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/deploy/afrodom.war state=PreReal mode=Manual requiredState=Real
                        org.jboss.deployers.spi.DeploymentException: URL file:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/tmp/deploy/afrodom47714-exp.war/ deployment failed
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:388)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         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:146)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                         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:545)
                         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)
                        16:53:55,500 INFO [TomcatDeployment] deploy, ctxPath=/hello, vfsUrl=jedina.war
                        16:53:55,968 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
                        16:53:57,156 INFO [TomcatDeployment] deploy, ctxPath=/boby, vfsUrl=origin2.war
                        16:53:57,437 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                        
                        *** CONTEXTS IN ERROR: Name -> Error
                        
                        vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss%20server/jboss-5.0.0.GA/server/default/deploy/afrodom.war -> org.jboss.deployers.spi.DeploymentException: URL file:/D:/Dokumenti/RADOVI/JAVA/Jboss server/jboss-5.0.0.GA/server/default/tmp/deploy/afrodom47714-exp.war/ deployment failed
                        
                        
                        16:53:57,562 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
                        16:53:57,640 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
                        16:53:57,671 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 3m:12s:250ms
                        
                        
                        





                        • 9. Re: A ClassCastException
                          peterj

                          I notice that your are using JDK 6u10 - I have run into various strange problems when using that version. Could you try using 6u7 (if you have it) or get 6u12 (the latest) and try it.

                          You installed JBoss AS into a directory with spaces in its path ("jboss server"). Don't do that - spaces in the path can confuse various Java libraries. Please rename the directory to something like jboss_server.

                          If you still have issues, add "-verbose:class" to the JAVA_OPTS in run.bat. It is possible that you have a stray jaxb(?) JAR file being picked up somewhere. The -verbose:class option will print out the JAR file location for every class loaded - look for the two classes mentioned in the "caused by" clause:

                          Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

                          • 10. Re: A ClassCastException

                            The exception has occurred when server has tried to load -

                            org.apache.xcerces.impl.msg.XMLMessageFormatter
                            , from my WEB-INF/lib, folder. Until that class loading, various classes from the same package has been successfully loaded!
                            Right after reaching that jar, follow error occurs:
                            
                            ERROR [JBossContextConfig] XML error parsing: context.xml
                            org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                            


                            and little later, as you can see in my stack trace
                            16:53:49,734 ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
                            
                            
                            Do I need in my application context.xml?
                            
                            :-) well, I'm completely out of mind... For sure the exception occurs after trying accessing XMLMessageFormatter...So what should I do now?
                            


                            • 11. Re: A ClassCastException

                              The exception has occurred when server has tried to load -

                              org.apache.xcerces.impl.msg.XMLMessageFormatter
                              , from my WEB-INF/lib, folder. Until that class loading, various classes from the same package has been successfully loaded!
                              Right after reaching that jar, follow error occurs:
                              
                              ERROR [JBossContextConfig] XML error parsing: context.xml
                              org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                              


                              and little later, as you can see in my stack trace
                              16:53:49,734 ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
                              
                              
                              Do I need in my application context.xml?
                              
                              :-) well, I'm completely out of mind... For sure the exception occurs after trying accessing XMLMessageFormatter...So what should I do now?
                              


                              • 12. Re: A ClassCastException

                                This is stack trace when I ommit xercesImpl.jar from my application's library :

                                2009-03-19 18:09:04,781 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] (HDScanner) Begin deploy, org.jboss.metadata.web.jboss.JBossWebMetaData@d75f1ee6
                                2009-03-19 18:09:04,781 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] (HDScanner) Error during deploy: vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss_server/jboss-5.0.0.GA/server/default/deploy/afrodomsler.war
                                org.jboss.deployers.spi.DeploymentException: Failed to create web module
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:472)
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:87)
                                 at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
                                 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.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:545)
                                 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
                                 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                                 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                                 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                 at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.io.IOException: The system cannot find the path specified
                                 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
                                 at java.io.File.checkAndCreate(File.java:1704)
                                 at java.io.File.createTempFile(File.java:1793)
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:369)
                                 ... 28 more
                                2009-03-19 18:09:04,781 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/D:/Dokumenti/RADOVI/JAVA/Jboss_server/jboss-5.0.0.GA/server/default/deploy/afrodomsler.war state=PreReal mode=Manual requiredState=Real
                                org.jboss.deployers.spi.DeploymentException: Failed to create web module
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:472)
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:87)
                                 at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
                                 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.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:545)
                                 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
                                 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                                 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
                                 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
                                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                 at java.lang.Thread.run(Thread.java:619)
                                Caused by: java.io.IOException: The system cannot find the path specified
                                 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
                                 at java.io.File.checkAndCreate(File.java:1704)
                                 at java.io.File.createTempFile(File.java:1793)
                                 at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:369)
                                 ... 28 more
                                


                                • 13. Re: A ClassCastException
                                  peterj

                                  Don't focus on the error message - always looked for the final "caused by" clause in the stack trace. That final "caused" by is the real reason for the failure. So for the error messages you posted earlier, what was the final "caused by"?

                                  Regarding your latest post, the final "caused by" is:

                                  Caused by: java.io.IOException: The system cannot find the path specified

                                  [soapbox]I always hate it when the person who wrote the error message assumes what the data in error is (in this case, the the path) - why can't they understand that their code might be layered underneath other code and used by someone who has no idea what data the code is complaining about. It would have been so much easier if the "caused by" clause included the name of the path! [/soapbox]

                                  Are you sure that the account you are using has full access to the JBoss AS path? If the WAR isan archive file, JBoss AS will attempt to create directories an other structures in the server/xxx/tmp directory.

                                  • 14. Re: A ClassCastException

                                    Jboss does attempt, and made, temp\ directorium, and inside it store deployed applications configurations files.
                                    The java.io.IOException occurs when I omit xercesIml.jar file from lib folder of my application. But it's not point because, why I cannot isolate classloading on my application (to use it's ONLY libraries. I don want to remove xercesIml.jar, because I 'll get another exception, and another and another...It's not a point ( I cannot remove all libraries).
                                    Let's return on first exception the source :

                                    Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration canno
                                    t be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
                                    
                                    


                                    why this occurs, if I perform correct isolation of class loading, that is the issue????

                                    1 2 Previous Next