Tutorial Broken? [message #151631] |
Tue, 13 December 2005 10:16  |
Eclipse User |
|
|
|
Originally posted by: leftout.nowhere.com
Hello, When I follow the tutorial as exactly as possible for creating a
simple ejb, when I go to deploy the ZooProject ear, when I start the JBoss
Server, I get the following error (Windows XP, JDK1.4.2_09, JBoss 3.2.3):
09:10:05,748 ERROR [MainDeployer] Could not initialise deloyment:
file:/D:/jboss-3.2.3/server/default/deploy/ZooBeansProjectEA R.ear
org.jboss.deployment.DeploymentException: Failed to find module file:
ZooBeansProject.jar
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:171)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:6 32)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:6 05)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Refl ectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j ava:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 7)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URL DeploymentScanner.java:302)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDe ploymentScanner.java:476)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$Scann erThread.doScan(AbstractDeploymentScanner.java:201)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.start Service(AbstractDeploymentScanner.java:274)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSuppo rt.java:192)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Refl ectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j ava:546)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(Servi ceController.java:976)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.j ava:394)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Refl ectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j ava:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 7)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:83 2)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:6 42)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:6 05)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:5 89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Refl ectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.j ava:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:17 7)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 84)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291 )
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:534)
|
|
|
|
Re: Tutorial Broken? [message #151681 is a reply to message #151638] |
Tue, 13 December 2005 11:43   |
Eclipse User |
|
|
|
Originally posted by: notsaying.nowhere.org
Hmm. Ok got past this issue by modifying the files :
/ZooBeansProjectEAR/.deployables/ZooBeansProjectEAR/META-INF /application.xml
and
/ZooBeansProjectEAR/ZooBeansProjectEAR/META-INF/application. xml
to point to ZooBeansProjectClient.jar instead of ZooBeansProject.jar.
However, when I go to do the last step in the tutorial, running the
test.jsp on the server, JBoss I get a null value for tiger from the
following lines:
com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
tiger = home.create();
Thoughts on the tutorial:
Prereqs : fine
Install Steps 1-10: fine, except xdoclet doesn't seem to come with the
bundle - no problem just go out and download it, install, point to it
Creating EJB and Web Modules:
Step 1: WTF? My wizzard doesn't match: Under EJB there is now "J2EE EJB
Module" only "EJB Project" or "Enterprise JavaBean" Hmmm, so I select J2EE
EJB Project instead...
Step 2: Because of Step 1, my window looks similar but not exactly the
same, so I'm creating a project instead of a module, will try to duplicate
names in tutorial - Putting "ZooBeansProject" for Project Name... But
wait? Where in blazes do I setup the ever elusive module, guess I will
have to wait...Select EJB version 2.0 so that my Jboss 3.2.3 shows up...
Trying to Deselect "Add module to an EAR application" just like tutorial
screenshot shows - WTF? Now I can't select "Create an EJB Client Jar..."
arg! What am I supposed to do now? Guessing I should select both because
it is important to create the ejb client jar for future use... Finish...
Egad! Enough already, could somebody post a _working_ tutorial?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05240 seconds