Finding class files that Eclipse builds
When Eclipse builds my workspace, I assume that it creates Java .class files. What else should otherwise deploy to my running JBoss AS?
Do you know where I can find these cl开发者_如何学Pythonass files that Eclipse temporarily creates?
Right click on your project, and then click on properties. Now click on the Java Build Path section, and you will be able to see and set the Default output folder on the "Source" tab. I believe Eclipse defaults to "bin"
More than likely though, it won't be enough to just copy these over to JBoss. You'll need to deploy your application as a .war file, which is basically a .zip with a different extension. Do some googling on "ant war task" for some examples and articles.
As gregcase has said, you want to deploy a .war file, and if you want Eclipse to do this for you, just right-click on the project, select "export" and under "web" choose "WAR file."
Copy this file to $JBOSS_HOME/server/default/deploy/ and you should be set.
精彩评论