1 2 Previous Next 25 Replies Latest reply on Apr 28, 2010 4:52 PM by Wolfgang Knauf Go to original post
      • 15. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
        Wolfgang Knauf Master

        Hi NK,

         

        I now get it: your ejb-jar.xml contains EJB 2.1 bean declarations. And because your code also has EJB 3 annotations, the bean is probably registered twice. After removing the Home interfaces, the EJB 2.1 part could not be deployed any more.

         

        The easiest way to fix this is to simply remove "ejb-jar.xml", as yours does not contain anything that requires its usage, and EJB3 works fine without it.

         

        Best regards

         

        Wolfgang

        • 16. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
          NAG Kum Newbie

          Thank you WolfGang, I cleaned up code as u suggested And deployed now STRUTS2(XML) error!!!!

           

          java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache
          .xalan.transformer.TransformerIdentityImpl.setDocumentLocator(Lorg/xml/sax/Locator;)V" the class loader (instance of org/
          jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/xalan/transformer/TransformerIdentityImpl, a
          nd the class loader (instance of <bootloader>) for interface org/xml/sax/ContentHandler have different Class objects for
          the type org/xml/sax/Locator used in the signature
                  at org.apache.xalan.processor.TransformerFactoryImpl.newTransformerHandler(TransformerFactoryImpl.java:779)
                  at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:198)
                  at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
                  at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
                  at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
                  at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
                  at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvi
          der.java:893)
                  at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:
          143)
                  at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
                  at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
                  at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
                  at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
                  at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
                  at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
                  at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:
          51)
                  at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
                  at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
                  at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
                  at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                  at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                  at $Proxy38.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(SimpleControllerContextA
          ction.java:62)
                  at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
          1)
                  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:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                  at org.jboss.system.ServiceController.start(ServiceController.java:460)
                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
          java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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:702)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           

                  at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
          61)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
          e.java:306)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                  at org.jboss.Main.boot(Main.java:221)
                  at org.jboss.Main$1.run(Main.java:556)
                  at java.lang.Thread.run(Thread.java:619)
          17:08:45,546 ERROR [StandardContext] Error filterStart
          17:08:45,546 ERROR [StandardContext] Context [/PaymentAdmin] startup failed due to previous errors
          17:08:45,546 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/PaymentAdmin stat
          e=Create mode=Manual requiredState=Installed
          org.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/tmp/4su1x60-598vmy-g8bi0j8r-1-g8b
          i1kuh-9r/PaymentAdmin.war/ deployment failed
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                  at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                  at $Proxy38.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(SimpleControllerContextA
          ction.java:62)
                  at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
          1)
                  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:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                  at org.jboss.system.ServiceController.start(ServiceController.java:460)
                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
          java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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:702)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           

                  at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
          61)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
          e.java:306)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                  at org.jboss.Main.boot(Main.java:221)
                  at org.jboss.Main$1.run(Main.java:556)
                  at java.lang.Thread.run(Thread.java:619)
          17:08:46,140 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=#TarangAggPlatform
          17:08:46,140 INFO  [SessionFactoryImpl] closing
          17:08:46,140 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=#TarangAggPl
          atform
          17:08:46,140 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingCo
          ntextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
          17:08:46,156 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=#TarangAggPlat
          form
          17:08:46,171 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/E:/jboss-5.1.0.GA/server/default/dep
          loy/PaymentAdmin.war/ state=PreReal mode=Manual requiredState=Real
          org.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/tmp/4su1x60-598vmy-g8bi0j8r-1-g8b
          i1kuh-9r/PaymentAdmin.war/ deployment failed
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
                  at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                  at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                  at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                  at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                  at $Proxy38.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(SimpleControllerContextA
          ction.java:62)
                  at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
          1)
                  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:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                  at org.jboss.system.ServiceController.start(ServiceController.java:460)
                  at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                  at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
          java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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:702)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           

                  at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
          61)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                  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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
          e.java:306)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                  at org.jboss.Main.boot(Main.java:221)
                  at org.jboss.Main$1.run(Main.java:556)
                  at java.lang.Thread.run(Thread.java:619)
          17:08:46,234 INFO  [TomcatDeployment] deploy, ctxPath=/
          17:08:46,281 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
          17:08:46,375 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRO
          RS FOR DETAILS):

           

          DEPLOYMENTS IN ERROR:
            Deployment "vfszip:/E:/jboss-5.1.0.GA/server/default/deploy/PaymentAdmin.war/" is in error due to the following reason(
          s): org.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/tmp/4su1x60-598vmy-g8bi0j8r-1
          -g8bi1kuh-9r/PaymentAdmin.war/ deployment failed

           

          Pls assist....

           

          Thanks,

          NK

          • 17. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
            NAG Kum Newbie

            Yes Jaikiran, Have upgraded JBoss as Wolfgang suggested..

            Bean issued resolved now, but pls see my latest post mentioning current struts error

             

            Thanks &

            Best Regds,

            NK

            • 18. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
              NAG Kum Newbie

              XML errors!!

               

              Pls see error below -

               

              Exception starting filter struts2
              ava.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.parsers.SAXParser.parse(Lorg/xml/sa
              /InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseCl
              ssLoader) of the current class, com/opensymphony/xwork2/util/DomHelper, and the class loader (instance of <bootloader>)
              or resolved class, javax/xml/parsers/SAXParser, have different Class objects for the type org/xml/sax/InputSource used i
              the signature
                     at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)
                     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvi
              er.java:893)
                     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:
              43)
                     at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
                     at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
                     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
                     at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
                     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
                     at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
                     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:
              1)
                     at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
                     at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
                     at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
                     at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
                     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                     at $Proxy38.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(SimpleControllerContextA
              tion.java:62)
                     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
              )
                     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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
              ava: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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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:702)
                     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

               

                     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
              1)
                     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
              .java:306)
                     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                     at org.jboss.Main.boot(Main.java:221)
                     at org.jboss.Main$1.run(Main.java:556)
                     at java.lang.Thread.run(Thread.java:619)
              8:33:06,843 ERROR [StandardContext] Error filterStart
              8:33:06,843 ERROR [StandardContext] Context [/PaymentAdmin] startup failed due to previous errors
              8:33:06,843 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/PaymentAdmin stat
              =Create mode=Manual requiredState=Installed
              rg.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/tmp/4su1x60-ah4oq1-g8bky6ys-1-g8b
              1uek-9s/PaymentAdmin.war/ deployment failed
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                     at $Proxy38.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(SimpleControllerContextA
              tion.java:62)
                     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
              )
                     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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
              ava: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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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:702)
                     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

               

                     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
              1)
                     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
              .java:306)
                     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                     at org.jboss.Main.boot(Main.java:221)
                     at org.jboss.Main$1.run(Main.java:556)
                     at java.lang.Thread.run(Thread.java:619)
              8:33:14,531 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=#TarangAggPlatform
              8:33:23,421 INFO  [SessionFactoryImpl] closing
              8:33:23,421 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=#TarangAggPl
              tform
              8:33:23,421 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingCo
              textFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
              8:33:23,421 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=#TarangAggPlat
              orm
              8:33:23,437 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/E:/jboss-5.1.0.GA/server/default/dep
              oy/PaymentAdmin.war/ state=PreReal mode=Manual requiredState=Real
              rg.jboss.deployers.spi.DeploymentException: URL file:/E:/jboss-5.1.0.GA/server/default/tmp/4su1x60-ah4oq1-g8bky6ys-1-g8b
              1uek-9s/PaymentAdmin.war/ deployment failed
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
                     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                     at $Proxy38.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(SimpleControllerContextA
              tion.java:62)
                     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:7
              )
                     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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                     at org.jboss.system.ServiceController.start(ServiceController.java:460)
                     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.
              ava: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:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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:702)
                     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

               

                     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:3
              1)
                     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileServic
              .java:306)
                     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                     at org.jboss.Main.boot(Main.java:221)
                     at org.jboss.Main$1.run(Main.java:556)

               

              Thanks,

              NK

              • 19. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                Wolfgang Knauf Master

                Hi,

                 

                seems your project contains a Xalan jar. JBoss will raise strange error messages if a deployed app contains xml parser libraries, as it already bundles a xml parser.

                 

                The easiest way to fix this is to delete all xml parser jars (Xalan, Xerces, SAX, ...). For a simple struts app, you shouldn't need them at all.

                 

                Best regards

                 

                Wolfgang

                • 20. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                  NAG Kum Newbie

                  HI Wolfgang,

                   

                  Thanks a lot, I could see deployed EJBs in jmx-console. Now face problem with client -

                   

                       My Code :

                   

                            Object obj = ServiceLocator.getEJB(AuthenticationBean.RemoteJNDIName);
                              System.out.println("EJB Look up successfull ");   
                             
                              AuthenticationRemote authEjb = (AuthenticationRemote)PortableRemoteObject.narrow(obj, AuthenticationRemote.class);

                   

                        Error :

                   

                   

                  java.lang.ClassCastException
                       com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
                       javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
                       com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPaymentAction.java:37)
                       com.tarangtech.mtg.struts.AuthenticationAction.execute(AuthenticationAction.java:23)
                       sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       java.lang.reflect.Method.invoke(Method.java:597)
                       com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
                       com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
                       com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                       com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                       com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
                       com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
                       com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                       org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
                       org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
                       org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
                       org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
                       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  
                  Pls assist me as early as possible, as I am already running out of time...
                  Thank you so much,

                  Best Regards,
                  NK

                   

                  root cause

                  • 21. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                    Wolfgang Knauf Master

                    Hi,

                     

                    there might be some reasons for this:

                     

                    -your client app contains JBoss jars which do not match the jars of your server.

                    -your client app contains older versions of the class files of your EJBs/EJB interfaces (either from an older compilation, or e.g. compiled with a different JDK version).

                     

                    By the way: how do you develop your app? Do you use some IDE? You are running in a whole lot of errors which would probably not happen if using e.g. "Eclipse for JavaEE developers".

                     

                    Best regards

                     

                    Wolfgang

                    • 22. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                      NAG Kum Newbie
                      Hi Wolfgang,

                      I took all the precautions as u suggested, but very unlucky for me ....!! Pls find the below exception -

                      Yes, I am using eclipse SDK (downloading eclipse for java EE)... but Why the below error,

                      java.lang.ClassCastException: org.jnp.interfaces.NamingContext cannot be cast to com.tarangtech.mtg.authentication.AuthenticationRemote
                           com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPaymentAction.java:35)
                           com.tarangtech.mtg.struts.AuthenticationAction.execute(AuthenticationAction.java:23)
                           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           java.lang.reflect.Method.invoke(Method.java:597)
                           com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)
                           com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)
                           com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                           com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                           com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
                           com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
                           com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
                           org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
                           org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
                           org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
                           org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
                           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)                   

                       

                           My efforts in vain!!! . Don't know how to proceed!..

                           Any help is appreciated ..

                       

                      Regds,

                      the most unlucky guy!!!
                      NK
                      • 23. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                        Wolfgang Knauf Master

                        Well, that is a completely new error again. So, you have to post some client code and a snippet from JNDIView. If you use a "jboss-client" xml file to configure an ENC, please post this, too.

                         

                        Best regards

                         

                        Wolfgang

                        • 24. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                          NAG Kum Newbie

                          Hi Wolfgang,

                           

                          Client Code :

                           

                          ServiceLocator.getEJB :

                           

                          public static Object getEJB(String jndiName) {
                                  Object object = null;
                                  Context ctx = null;
                                  try {
                                      ctx = new InitialContext();
                                      object = ctx.lookup(jndiName);
                                  } catch (Exception e) {
                                      e.printStackTrace();
                                  }
                                  return object;
                              }

                           

                          public static final String RemoteJNDIName =  "AuthenticationBean/remote";

                          AuthenticationRemote authEjb = (AuthenticationRemote)ServiceLocator.getEJB(AuthenticationBean.RemoteJNDIName);
                                      System.out.println("EJB Look up successfull "); 

                           

                          Jndi View :

                           

                          +- AuthenticationBean (class: org.jnp.interfaces.NamingContext)   |   +- remote (class: org.jnp.interfaces.NamingContext)   |   |   +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)   |   |   +- metaData (class: org.jboss.metadata.client.jboss.JBossClientMetaData)   |   |   +- env (class: org.jnp.interfaces.NamingContext)   |   |   |   +- com.tarangtech.mtg.authentication.AuthenticationBean[link -> AuthenticationBean/remote] (class: javax.naming.LinkRef)   |   |   +- classPathEntries (class: java.util.ArrayList)

                           

                          Pls find jboss-client.xml

                           

                          <?xml version="1.0" encoding="UTF-8"?>
                          <!DOCTYPE jboss-client PUBLIC
                              "-//JBoss//DTD Application Client 5.0//EN"
                              "http://www.jboss.org/j2ee/dtd/jboss-client_5_0.dtd">
                          <jboss-client>
                             
                              <jndi-name>AuthenticationBean/remote</jndi-name>
                              <ejb-ref>       
                                  <ejb-ref-name>com.tarangtech.mtg.authentication.AuthenticationBean</ejb-ref-name>
                                  <jndi-name>AuthenticationBean/remote</jndi-name>                   
                              </ejb-ref>
                             
                          </jboss-client>

                           

                          Pls .. suggest me as it is urgent ......

                           

                          Regds,

                          NK

                          • 25. Re: Error working wih EJB3, Struts2 & JBoss 4.2GA
                            Wolfgang Knauf Master

                            Hi,

                             

                            I think your ejb ref in "jboss-client" is defined wrong.

                             

                            "ejb-ref-name" is the JNDI lookup name. "jndi-name" points to the global interface JNDI name.

                             

                            So, according to your jboss-client.xml, you would have to perform a lookup for "com.tarangtech.mtg.authentication.AuthenticationBean" to get the Remote Interface.

                             

                            Hope this helps. I don't know enough of your full sample to provide you with a full solution ;-)

                             

                            Wolfgang

                             

                            By the way: avoid the word "urgent" in forum posts, this will increase the chance of being ignored: http://catb.org/~esr/faqs/smart-questions.html#urgent

                            1 2 Previous Next