For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 2 replies, 2 voices, and was last updated 18 years, 9 months ago by
rajeshbatchu.
-
AuthorPosts
-
rajeshbatchuMemberHi,
I have a ‘Enterprise Application Project’ named ‘myApp’.
And I have a ‘WebModule Project’ named ‘myAppWeb’ and a ‘EJB Module Project’ named ‘myAppEJB’.
‘myApp’ project references ‘myAppWeb’ and ‘myAppEJB’ projects.
When I deploy ‘myApp’ project to Jboss ( I am using exploded mode), ‘myApp.ear’ contains only ‘myAppEJB.jar’ and I get the following error. As the error explains there is no ‘myAppWeb.war’ folder in the ‘myApp.ear’. How can I make the Enterprise Application Project to deploy both the Web Project and EJB project ?
=== Error Start ===
14:57:15,055 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/myApp.ear/
14:57:15,071 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/myApp.ear/
org.jboss.deployment.DeploymentException: url file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/myApp.ear/myAppWeb.war could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:191)
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:235)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
=== Error End ===Thanks
Rajesh BOctober 25, 2006 at 2:34 pm #260906
Riyad KallaMemberRajesh,
If you right click on your EAR project, and go down to MyEclipse, then Add/Remove Modules, do you see the web project listed correctly?Also if you check your application.xml file, is it listed correctly?
If so, check your log file for exceptions, near the bottom, that might shed light on why the deployment is failing (<workspace dir>\.metadata\.log)
October 26, 2006 at 12:19 pm #260987
rajeshbatchuMemberHi Riyad,
Thanks for the clue. I was missing the Web Module in the list of the EAR Project’s modules. Some how I was looking at the EAR Project > Project References, which had both web and ejb projects and thought that it was not deploying.
Thanks
Rajesh B -
AuthorPosts