what server are you using to run your application?
please, check the server console output for exceptions during application deployment.
Hi Im using JBoss AS 4.2
I created a Seam application called MyFirstSeam. So it has 4 Project Folders: MyFirstSeam, MyFirstSeam-ear, -ejb, -test. Then I have succesffully run Seam Generate Entities, so i have Entities already.
I Right Clicked MyFirstSeam folder, and Clicked Run-As Server. No code yet. I got the error, and then looked at the console...
....DeploymentException ... cannot find .... default\deploy\MyFirstSeam-ear.ear\jboss-seam.jar.
I copied all the jar files manually from \myWorkspace\MyFirstSeam-ear\ to the deploy Folder and it worked OK.
But my question is, isn't Eclipse suppose to copy that automatically for me?
it is known problem, related to WTP regression in 2.0.2 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=222531.
There is a patch available to fix issue mentioned above - http://repository.jboss.org/eclipse/webtools/patches/wtp-P-P20080506003122-20080506003122.zip.
I do have the same problem. The mentioned Patches are installed inside eclipse. But it does not work.
seam.jar is not deployed and -ejb.jar is not deployed
Are you 100% sure you got those patches in ? Your problem is exactly what the patches are fixing...
I have applied the patch(unzipped) and even used Jboss Tools version 2.1.0-CR.
Still doesn't work. server still complains it can't find ./default/deploy/Project1-ear.ear/Project1-ejb.jar (DeploymentException)
after doing a deployment, please open a console of some sort and get a recursive file listing of your-jboss-server/default/deploy/Project1-ear.ear.
Is the ejb jar there at all? Or is it missing?
If it is there, then there is a race condition where the server is reading before the entire ear is coppied. If it is not there, then it is not copying the file.
Another idea: In the server's view or jboss server's view, when you right-click on the server and select add / remove modules, if you expand the EAR project inside that wizard, is the ejb project listed under it?