Hi, everyone.
This is a new thread off "Error deploying SLSB+Spring on JBoss". I don't normally re-start threads this way, but there is new and (I believe) significant information that may be unrelated to the "Error deploying SLSB+Spring on JBoss" as it was originally posted, and I need to post it in a way that makes it clear to all what the essential problem is, so here goes...
The ProSpring book has a simple Spring EJB example, also posted here:
http://www.javaworld.com/javaworld/j...springejb.html
...for which the source code is posted here:
http://java.apress.com/book/suppleme...D=405&sID=2446
I downloaded the above and imported the Chapter 13 project into my JBoss Eclipse IDE. I then created a build file (attached for your convenience), and attempted to deploy it to the JBoss app server.
The app server console shows the following deployment error:
08:19:07,011 WARN [verifier] EJB spec violation:
Bean : EchoServiceEJB
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info : Class not found on 'com.apress.prospring.ch13.ejb.EchoServiceEJB': Unexpected error during load of: com.apress.prospring.ch13.ejb.EchoServiceEJB, msg=org/springframework/ejb/support/AbstractStatelessSessionBean
08:19:07,027 WARN [verifier] EJB spec violation:
Bean : CounterServiceEJB
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info : Class not found on 'com.apress.prospring.ch13.ejb.CounterServiceEJB': Unexpected error during load of: com.apress.prospring.ch13.ejb.CounterServiceEJB, msg=org/springframework/ejb/support/AbstractStatefulSessionBean
08:19:07,027 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp18149ch13.ear-contents/ch13-ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java: 575)
...rest of stack deleted for brevity, but bottom line is that the app server chokes on it and auto-undeploys the Enterprise App.
----------------------------------------------
Just so you know what I have and have not modified: This is essentially an UNMODIFIED deployment, i.e. unlike what I posted in "Error deploying SLSB+Spring on JBoss", in this simple downloaded example I did NOT modify the source code or the spring config xmls. All I did was move the files into the JBoss-standard locations (as best I understand them), create the packaging-build.xml (the ant build file), as is normal in the JBoss Eclipse IDE, and tweak the application.xml for the context-root for the servlet (which shouldn't affect the EJB deployment, in any case).
What is significant, is that I'm getting essentially the same error, as reported in the "Error deploying SLSB+Spring on JBoss" thread.
My top suspects at this point are either:
(a) The Spring framework does not correctly implement the AbstractStatelessSessionBean (spring-framework-1.2.6 download), or
(b) JBoss (jboss-4.0.3SP1) does not conform to the EJB 2.x spec, or
(c) I'm doing something wrong (subtle or stupid) in my deployment or build setup.
Naturally, I'm hoping for (c), but if it turns out to be (a) or (b), it may be a Spring show-stopper for many of us.
I have attached the packaging-build.xml, so that any of you can download the source from Apress (If you do, please be respectful to the author, and buy the book.), move the files around to conform to the packaging-build.xml, and attempt to deploy it yourself.
I can also email you a zip of the project, of course, since the source appears to be freely available on the web, but again, I would just ask that you buy the associated book first, to be fair to the author.
Ben


, but if it turns out to be (a) or (b), it may be a Spring show-stopper for many of us.
Reply With Quote