[EJB 3.0] - EJB3 deployment failed on jboss5.0Beta4
by MmarcoM
hello all,
i have developed an ejb3 webservice.. which i was successfully able to deploy on jboss4.0.5.GA.
I was unable to invoke it froma soapGUI, as i receive the following exception
| 2008-04-12 22:52:29,953 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new SOAPFaultException [code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=setProperty must be overridden by all subclasses of SOAPMessage,actor=null,detail=null]
| 2008-04-12 22:52:29,953 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
| java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
| at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:65)
| at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:209)
| at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:142)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:190)
| at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(E
|
after googling it (and checking jboss site) i found out that the latest ejb3 implementation is present in jboss5.0
so i downloaded jboss 5.0Beta4 and deployed my webservice.
However, when starting server, my bean does not get deployed. i receive instead this nasty exception
| oss50.WebServiceDeployerEJB] Error during deploy: vfsfile:/C:/Sw/jboss-5.0.0.Beta4/server/default/deploy/echo.jar
| java.lang.IllegalStateException: Cannot obtain context root
| at org.jboss.wsf.framework.deployment.EndpointAddressDeploymentAspect.create(EndpointAddressDeploymentAspect.java:47)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
| at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:619)
|
could anyone help me out?
thanks in advance and regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143671#4143671
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143671
18 years, 2 months
[EJB 3.0] - Reference-Problems within an ear
by Hilwi
Hello!
I have a problem deploying an ear with multiple ejb-modules.
I have an ejb-module called "JbsCore.jar" and another ejb-module called "JbsCalendar.jar". I set up the order of the modules in the application.xml and set <module-order>strict</module-order> to make sure that JbsCalendar is deployed after JbsCore.
Within JbsCalendar I have an entity-bean named Appointment that references an entity-bean (JbsUser) within JbsCore in this way:
| @ManyToOne
| public JbsUser getLastChangeUser() {
| return lastChangeUser;
| }
|
When I now try to deploy my application I get the following error:
| org.hibernate.AnnotationException: @OneToOne or @ManyToOne on org.jabusuite.calendar.Appointment.lastChangeUser references an unknown entity: org.jabusuite.core.users.JbsUser
| at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:56)
| at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:428)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
| [...]
|
As I have seen in the jboss-logs JbsCalendar is deployed just after JbsCore so this problem seems to have nothing to do with the deployment-order. This reference is used in nearly all entity-beans within JbsCore so this seems not to be a general problem with the reference.
Isn't it possible to reference entities from another jar within the same ear? Both ejb-modules use the same persistence-unit.
Am I doing something wrong? Is there another/better way to separate an enterprise-application into different modules?
I'm using JBoss 4.2.2GA
Hilwi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143668#4143668
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143668
18 years, 2 months