6 Replies Latest reply on Feb 3, 2010 3:53 PM by Xavi P

    Can't deploy EJB (Eclipse)

    Xavi P Newbie

      Hi all,

       

      I'm trying to deploy a simple EJB 3 with Eclipse Galileo but an exception raises. I've got the following files in the JBoss folder lib\endorsed:

       

      activation.jar, jaxb-api.jar, jboss-jaxrpc.jar, jboss-jaxws.jar, jboss-jaxws-ext.jar, jboss-logging-spi.jar, jboss-saaj.jar, resolver.jar, serializer.jar, stax-api.jar xalan.jar, xercesImpl.jar.

       

      There's a user library created in Eclipse with client and lib\endorsed folders. This same ejb deploys ok in another computer but I can't see what's wrong although I've searched google for two days. Here's the exception raised:

       

      10:24:27,609 INFO  [EJBContainer] STOPPED EJB: beans.Bean ejbName: Bean
      10:24:27,656 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deploy/ZZ.jar/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deploy/ZZ.jar/
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
          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: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.hotdeploy.HDScanner.scan(HDScanner.java:362)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
          at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel
          at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processWebService(JAXWSWebServiceMetaDataBuilder.java:363)
          at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:107)
          at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
          at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:76)
          at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:69)
          at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:129)
          at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:76)
          at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
          at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:113)
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
          ... 24 more
      Caused by: java.lang.ClassNotFoundException: org.apache.xerces.xs.XSModel from BaseClassLoader@111f9b{VFSClassLoaderPolicy@322e7d{name=vfsfile:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/ domain=ClassLoaderDomain@c24193{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@a97b0b} roots=[MemoryContextHandler@9056107[path= context=vfsmemory://1112-t0k6ot-g53mjsp5-1-g53mjxfp-e real=vfsmemory://1112-t0k6ot-g53mjsp5-1-g53mjxfp-e], FileHandler@3087130[path=jbossws.deployer context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/], DelegatingHandler@10250203[path=jbossws.deployer/FastInfoset.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/FastInfoset.jar], DelegatingHandler@6708801[path=jbossws.deployer/jboss-jaxb-intros.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jboss-jaxb-intros.jar], DelegatingHandler@11927727[path=jbossws.deployer/jbossws-common.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jbossws-common.jar], DelegatingHandler@15136529[path=jbossws.deployer/jbossws-framework.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jbossws-framework.jar], DelegatingHandler@23496392[path=jbossws.deployer/jbossws-jboss50.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jbossws-jboss50.jar], DelegatingHandler@1766076[path=jbossws.deployer/jbossws-native-core.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jbossws-native-core.jar], DelegatingHandler@20329073[path=jbossws.deployer/jettison.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/jettison.jar], DelegatingHandler@19511586[path=jbossws.deployer/policy.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/policy.jar], DelegatingHandler@3778663[path=jbossws.deployer/wsdl4j.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/wsdl4j.jar], DelegatingHandler@23005302[path=jbossws.deployer/xmlsec.jar context=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/ real=file:/C:/Archivos%20de%20programa/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/xmlsec.jar]]  delegates=null exported=[, org.jboss.ws.tools.schema, com.ibm.wsdl.xml, org.codehaus.jettison.json, org.jboss.wsf.common.injection.finders, org.jboss.ws.extensions.wsrm.protocol.spec200502, org.apache.xml.security.resource.schema, org.jboss.ws.extensions.wsrm.protocol, javax.wsdl.extensions.mime, schema, org.apache.xml.security.utils, com.ibm.wsdl.util, org.apache.xml.security.exceptions, org.jboss.ws.extensions.wsrm.protocol.spec200702, org.jboss.wsf.stack.jbws, org.jboss.ws.metadata.builder.jaxrpc, META-INF.maven.org.codehaus.jettison.jettison, org.jboss.ws.extensions.policy.deployer, org.jboss.ws.extensions.wsrm.transport, javax.wsdl, org.jboss.ws.jaxrpc, org.jboss.ws.tools.wsdl, org.jboss.wsf.test, org.jvnet.fastinfoset, org.jboss.ws.extensions.eventing.jaxws, org.jboss.ws.extensions.eventing.deployment, com.ibm.wsdl.extensions.schema, org.jboss.wsf.common.management, org.jboss.ws.extensions.validation, javax.wsdl.extensions, com.sun.xml.fastinfoset.dom, javax.wsdl.factory, org.jboss.ws.metadata.wsdl.xsd, com.sun.xml.fastinfoset.org.apache.xerces.util, org.jboss.ws.core.jaxws.spi, org.jboss.wsf.common.concurrent, com.sun.xml.fastinfoset.tools, org.apache.xml.security.keys.storage, org.jboss.wsf.container.jboss50.deployment.metadata, com.sun.xml.fastinfoset.stax.events, META-INF.services, org.apache.xml.security.resource, org.jboss.ws.extensions.addressing.metadata, org.jboss.ws.core.jaxrpc.handler, org.jboss.ws.extensions.eventing.mgmt, META-INF.maven.org.jboss.ws.native.jbossws-native-core, com.sun.xml.fastinfoset.resources, org.jboss.ws.extensions.security.element, org.jboss.jaxb.intros.configmodel, org.jboss.ws.extensions.wsrm, META-INF.maven.org.jboss.ws.jbossws-framework, javax.xml.crypto.dsig.keyinfo, org.jboss.ws.core.soap, javax.wsdl.extensions.schema, org.apache.xml.security.keys, org.jboss.ws.extensions.policy.deployer.domainAssertion, org.jvnet.fastinfoset.stax, org.jboss.ws.tools.metadata, org.jboss.ws.core.jaxws.handler, dtd, org.jboss.ws.extensions.wsrm.server, org.jboss.ws.metadata.umdm, org.codehaus.jettison.mapped, javax.xml.crypto.dsig.dom, com.sun.xml.fastinfoset.stax.util, org.jboss.wsf.framework.invocation, org.jboss.ws.extensions.wsrm.common, org.jboss.wsf.common.handler, org.jboss.ws.extensions.addressing.soap, com.sun.xml.fastinfoset.vocab, org.jboss.ws.metadata.accessor, org.jboss.ws.core, org.jboss.ws.core.jaxws.client, com.sun.xml.fastinfoset.alphabet, org.jboss.wsf.common.utils, javax.xml.crypto.dsig.spec, org.jboss.ws.extensions.wsrm.transport.backchannel, org.jboss.ws.metadata.config.binding, com.ibm.wsdl, org.apache.xml.security.c14n.implementations, org.jboss.ws.extensions.wsrm.api, org.jboss.ws.tools.client, org.jboss.ws.tools.interfaces, org.jboss.wsf.framework.serviceref, org.jboss.ws.extensions.eventing.metadata, org.jboss.ws.extensions.eventing.common, org.apache.ws.policy, org.jboss.ws.core.binding, org.jboss.ws.metadata.builder, org.jboss.ws.extensions.wsrm.protocol.spi, org.jboss.ws.extensions.xop, com.ibm.wsdl.extensions.soap12, org.apache.xml.security.keys.storage.implementations, org.jboss.ws.extensions.wsrm.jaxws, org.jboss.ws.extensions.policy.deployer.exceptions, org.jboss.ws.core.transport.jms, com.sun.xml.fastinfoset.stax, javax.wsdl.extensions.soap, org.jvnet.fastinfoset.sax, META-INF, org.jboss.ws.extensions.security.jaxrpc, org.jboss.ws.metadata.jaxrpcmapping, org.jboss.ws.feature, org.jboss.ws.extensions.wsrm.common.serialization, org.jboss.ws.core.soap.attachment, org.apache.xml.security.transforms.params, org.jboss.ws.tools.jaxws.impl, javax.wsdl.extensions.soap12, org.jboss.ws.tools.helpers, org.jcp.xml.dsig.internal, org.jboss.ws.tools.factories, org.jboss.ws.core.jaxws.wsaddressing, javax.wsdl.extensions.http, org.codehaus.jettison, javax.wsdl.xml, org.jboss.ws.tools.io, org.apache.xml.security.transforms, org.jboss.wsf.common.reflection, org.jboss.wsf.common.injection.resolvers, org.jboss.wsf.container.jboss50.deployer, org.jboss.wsf.container.jboss50.deployment, org.jboss.ws.extensions.policy.metadata, org.jboss.wsf.framework.management.recording, org.apache.xml.security.utils.resolver, org.apache.xml.security.encryption, org.jboss.ws.extensions.policy, org.jvnet.fastinfoset.sax.helpers, org.jboss.ws.core.client, com.sun.xml.fastinfoset.stax.factory, org.jboss.ws.extensions.addressing.jaxrpc, org.apache.xml.security.algorithms.implementations, org.jboss.wsf.framework.deployment, javax.xml.crypto, org.jboss.ws.extensions.wsrm.policy, org.jboss.ws.extensions.security.operation, com.ibm.wsdl.extensions.mime, org.apache.xml.security.keys.keyresolver.implementations, org.jboss.ws.extensions.policy.deployer.util, org.jboss.ws.extensions.security.exception, org.jboss.ws.core.jaxrpc, org.apache.xml.security.algorithms, org.jboss.ws.util.xml, org.jboss.ws.extensions.addressing.jaxws, org.jboss.jaxb.intros.handlers, org.jboss.wsf.container.jboss50.deployment.tomcat, org.jboss.ws.metadata.config.jaxrpc, org.codehaus.jettison.badgerfish, org.apache.xml.security.keys.content.keyvalues, org.apache.xml.security, org.apache.xml.security.keys.content, org.apache.ws.policy.util, org.jboss.ws.extensions.xop.jaxws, org.jboss.wsf.common.servlet, org.jboss.ws.core.server, com.sun.xml.fastinfoset.algorithm, META-INF.maven.org.jboss.ws.jbossws-common, org.apache.xml.security.utils.resolver.implementations, com.ibm.wsdl.util.xml, org.jboss.ws.metadata.wsdl, org.codehaus.jettison.util, org.jboss.ws.extensions.addressing, com.ibm.wsdl.factory, org.apache.xml.security.signature, org.jboss.ws.annotation, org.jboss.ws.extensions.xop.jaxrpc, org.jboss.ws.extensions.eventing, org.jboss.ws.extensions.json, org.jboss.ws.metadata.builder.jaxws, org.jboss.ws.metadata.config.jaxws, org.jboss.ws.tools.mapping, org.jboss.ws.extensions.security, org.jboss.ws.core.utils, org.apache.xml.security.keys.keyresolver, org.jboss.ws.extensions.wsrm.persistence, org.jboss.ws.tools.ant, org.jboss.ws.tools.config, org.jboss.ws.tools.exceptions, org.jboss.ws.metadata.wsse, org.jboss.ws.extensions.security.jaxws, org.jcp.xml.dsig.internal.dom, org.apache.xml.security.transforms.implementations, org.jboss.jaxb.intros, org.jboss.ws.metadata.wsdl.xmlschema, org.jboss.ws.tools, org.jboss.wsf.container.jboss50.transport, org.jboss.ws.core.jaxrpc.binding.jbossxb, org.jboss.ws.core.jaxws.binding, com.ibm.wsdl.extensions, org.jboss.ws.metadata.config, org.jboss.ws.extensions.wsrm.config, org.jboss.ws.extensions.policy.annotation, com.sun.xml.fastinfoset.util, com.sun.xml.fastinfoset, org.jboss.ws.extensions.security.nonce, org.apache.xml.security.c14n.helper, org.jboss.wsf.framework.http, org.jboss.wsf.framework.management, org.jboss.wsf.common.logging, org.jboss.ws.core.jaxrpc.binding, org.apache.xml.security.c14n, org.jboss.ws.core.jaxrpc.client, com.ibm.wsdl.extensions.soap, org.jboss.ws.core.jaxws, org.apache.xml.security.keys.content.x509, org.jboss.wsf.common, org.jboss.ws, org.jboss.wsf.common.injection, com.ibm.wsdl.extensions.http, org.jboss.wsf.container.jboss50.invocation, org.jboss.ws.extensions.security.auth.callback, com.sun.xml.fastinfoset.sax, javax.xml.crypto.dsig, org.jboss.wsf.framework, javax.xml.crypto.dom] <IMPORT-ALL>NON_EMPTY}}
          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClassInternal(Unknown Source)
          ... 35 more

       

      My compliance level is 1.5 and my JRE is 6, but I tried on another Eclipse with the same settings and runs ok.

       

      I'll appreciate any help

        • 1. Re: Can't deploy EJB (Eclipse)
          jaikiran pai Master
          Caused by: java.lang.ClassNotFoundException: org.apache.xerces.xs.XSModel

          This class is present in JBOSS_HOME/lib/endorsed/xercesImpl.jar. Is this a clean installation of JBoss? Have you changed any configurations? Also, please try deploying the application outside of the IDE. Use the command line to start the server and place your application in JBOSS_HOME/server/default/deploy folder and see if it deploys fine.

          • 2. Re: Can't deploy EJB (Eclipse)
            Wolfgang Knauf Master

            Hi Xavi P,

             

            do you use the Eclipse Web Tools Platform plugin, or the JBoss Tools plugin, or do you use core Eclipse?

             

            {quote}There's a user library created in Eclipse with client and lib\endorsed folders{quote}

             

             

            This sounds as if you added some libraries to the classpath of your project? This is not necessary with WTP / JBossTools, as you connect your project to a server runtime, and this one already configures the classpath.

             

            Best regards

             

            Wolfgang

            1 of 1 people found this helpful
            • 3. Re: Can't deploy EJB (Eclipse)
              Xavi P Newbie

              Hi again,

               

              I think there was something wrong with classpath or duplicate jars. I downloaded again JBoss 5.1.0 and Eclipse, added the jars to the lib/endorsed folder and updated Eclipse with JBoss Tools. Now it deploys properly.

               

              Now I get an exception when trying to test the web service with SoapUI:

               

               

               

              ERROR [SOAPFaultHelperJAXWS] SOAP request exception
              java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
              at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
              at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:215)
              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:193)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:455)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Unknown Source)
              08:49:58,062 ERROR [RequestHandlerImpl] Error processing web service request
              org.jboss.ws.WSException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
              at org.jboss.ws.WSException.rethrow(WSException.java:68)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:336)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Unknown Source)
              Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
              at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
              at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.createSOAPMessage(SOAPFaultHelperJAXWS.java:295)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:256)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:187)
              at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:102)
              at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:671)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:496)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
              ... 24 more
              08:49:58,093 ERROR [[Bean]] Servlet.service() para servlet Bean lanzó excepción
              java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
              at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
              at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.createSOAPMessage(SOAPFaultHelperJAXWS.java:295)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:256)
              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:187)
              at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:102)
              at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:671)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:496)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Unknown Source)

               

               

              I've read it is something with compiling and deploying with JRE 6. Should I delete jr6 and install jre5.0? Or can I fix it in some way? I also read there's something wrong with jboss-saaj.jar, but it's already in endorsed folder.

               

              Thanks,

               

              Xavi

              • 4. Re: Can't deploy EJB (Eclipse)
                Wolfgang Knauf Master

                Hi,

                 

                did you already found this (first google hit with the exception message ;-) ):

                {url}https://jira.jboss.org/jira/browse/JBWS-1439{url}

                 

                There is also a post about an eclipse bug which might affect you:

                {url}https://jira.jboss.org/jira/browse/JBWS-1439?focusedCommentId=12436397#action_12436397{url}

                 

                Hope this helps

                 

                Wolfgang

                • 5. Re: Can't deploy EJB (Eclipse)
                  Wolfgang Knauf Master

                  Xavi, about the Eclipse plugin bug with endorsed dirs: you might use JBoss Tools instead of WTP, or you might use a modified JBoss plugin I built:

                   

                  {url}http://www.cs.hs-rm.de/~knauf/public/{url}

                  (see instructions on how to add the required update site)

                   

                  Best regards

                   

                  Wolfgang

                  1 of 1 people found this helpful
                  • 6. Re: Can't deploy EJB (Eclipse)
                    Xavi P Newbie
                    Hi Wolfgang,

                    I already had visited the first link and tried every one of the posts there with no luck, I think they fix it if you have JBoss 4 version.
                    Never mind, I've finally been able to find a solution : ) It was the jre stuff, let me explain in case someone else got the same issue with Eclipse Galileo and JBoss 5.1.0:

                    I desinstaled jdk 6 and installed jdk 5.0, downloaded again Eclipse and JBoss to start with clean installations and upgraded Eclipse with the following plug-ins of JBoss Tools (this maybe isn't necessary):

                        Hibernate Tools
                        JBoss WebServices Tools
                        JBossAS Tools

                    And that's all, I didn't have to do anything with the infamous endorsed folder!

                    Nevertheless, I'll try your JBoss plugin and test it with jdk 6.

                    Thanks so much for your time Wolfgang, I appreciate it