anil_potu (9) [Avatar] Offline
#1
I am not sure what am i missing. I am using JBOSS 5.0.0GA with jdk1.5 and trying to run my client on chapter15 but i get this error. I have jaxws-api.jar in my lib and classpath.

I followed same process as given in readme file.
1) ant
2) ant build-client
3) ant run

for ant i see this error in jboss console while it deploys.

**********
org.jboss.deployers.spi.DeploymentException: Error deploying chapter15-ejb.jar: <injection-target> could not be found: com.ejb3inaction.actionbazaar.persistence.eao.BidEAOImpl.actionBazaar
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:203)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:104)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
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:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:109smilie
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:34smilie
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:159smilie
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: <injection-target> could not be found: com.ejb3inaction.actionbazaar.persistence.eao.BidEAOImpl.actionBazaar
at org.jboss.injection.InjectionUtil.findInjectionTarget(InjectionUtil.java:223)
at org.jboss.injection.InjectionUtil.injectionTarget(InjectionUtil.java:299)
at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:64)
at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:584)
at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:415)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:523)
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
... 23 more
ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
**********

for ant build-client:

**********
[exec] [ERROR] Failed to read the WSDL document: http://localhost:8080/chapter15/PlaceBid?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
[exec] unknown location

[exec] Failed to parse the WSDL.
[exec] Failed to invoke WsImport
[exec] java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more information
[exec] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:233)
[exec] Error: Could not import. (use --verbose to see full traces)
[exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:222)
[exec] java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more information
[exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:80)
[exec] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:233)
[exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:222)
[exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:80)

BUILD FAILED

Can some one tell me what am i missing? May be your experience will help me in solving this.

Thanks in advance
reza_rahman (456) [Avatar] Offline
#2
Re: Problem running Chapter15 in jboss.
Anil,

We currently do not support JBoss 5. Our example code is targeted for JBoss 4.2.

Cheers,
Reza
anil_potu (9) [Avatar] Offline
#3
Re: Problem running Chapter15 in jboss.
Thanks Reza. I got it working with JBOSS 4.2 but i had to change some thing in client and build.xml.

WSDL location had to be modified to
http://localhost:8080/PlaceBidBeanService/PlaceBidBean?WSDL

Not sure if it is good but it is working for me after that change.

Thanks for your support.

Anil