-
1. Deployment problem under Windows 7 / 64bit ?
wdfink Jan 17, 2011 3:08 AM (in response to ula.uvula)1 of 1 people found this helpfulIt looks like that eclipse only copy the *.class file to deploy (am I right?)
In this case JBoss does not pick up the change, only EAR/WAR/JAR and different types of XML are supported.
If eclipse use 'exploded' deployment (e.g. deploy/myapp.ear/.../*.class) the META-INF/ files must be touched to reload the application.
If you modify a deploy/*.xml file the hotdeploy will pick up it imediately.
-
2. Deployment problem under Windows 7 / 64bit ?
ula.uvula Jan 17, 2011 4:12 AM (in response to wdfink)Hi,
yes, you are right. I see only a copy of the new *.class in the deploy directory of jboss.
In the deployment directory, there is not a single jar file. I see a extracted (exploded) directory with the name of my project like "myappl.jar"
and below ohter directory from the packages etc.
But if you tell me: eclipse use 'exploded':
where can I configure this? I'm a beginner.
Is this because I use JBoss Tools?
The only hint (exploded) I see is in eclipse within the "server" tab, opening my jboss server configuration.
In the "deployment" tab I can choose the deployment directory (workspace metadata, jboss deploy folder, custom folder).
Also in this tab, I see "Deploy projects as compressed archives".
If I activate this option:
- I see in the deployment directory now a single file with the name "myappl.jar"
- Changing the java code, don't have any affect to the deployment. Jarfile in deploy is not changed
- Editing a xml file also has no affect to the deployment.
- Manual calling "full publish" is working
Uwe
-
3. Deployment problem under Windows 7 / 64bit ?
wdfink Jan 17, 2011 1:25 PM (in response to ula.uvula)I'm not very familar whit JEE development completly with Eclipse (use only Eclipse without JEE support because of environment).
But I play around with it and I use always the context menu 'Export' to deploy the created EAR/WAR/JAR into the JBoss.
This looks like working for me.
-
4. Deployment problem under Windows 7 / 64bit ?
peterj Jan 17, 2011 1:33 PM (in response to ula.uvula)Is autobuild turned on in Eclipse?
-
5. Deployment problem under Windows 7 / 64bit ?
ula.uvula Jan 17, 2011 1:56 PM (in response to peterj)Hi,
if you mean within eclipse: Project > Build Automatically YES
In the meantime I made a new test:
1.) I removed eclipse, jboss 5.1
2.) I installed eclipse and jboss (unzipped both archives)
3.) Configured a new server with the eclipse build in mechanism (?), I mean, no plugin installed, only the jee support from eclipse
Windows>Preferences>Server>Runtime Environment>Add>Jboss v5.0
4.) Created a new server configuration in the server tab and started the server (without problems/errors)
5.) Created a new workspace and made a new ejb project, created all java packages/classes and
Run As>Run On Server and choose the new server.
6.) Deployment message in logging
7.) client is OK
8.) Changed the source and waited ~ 10 sec. The change was deployed by eclipse through a "ant" task.
9.) client shows the change.
10.) Happy
Now I have installed JBoss Tools (only a sub modul (JBossAS Tools)
a.) registered a new server with "Jboss community>JBoss 5.1 Runtime"
b.) created a new server and started this server
c.) switched the project to the new server.
d.) Same behavior, than may initial posting
e.) in the server tab I see a very short flashing "republishing", if I save the source.
f.) find all new *.classes in the deploy directory, but the Jboss is not recognizing the redeployment.
g.) If I create same METAINF/a.xml file and modify this file. The redeployment is running (shown in logging) and changes are activated.
Any ideas?
Uwe
-
6. Deployment problem under Windows 7 / 64bit ?
peterj Jan 17, 2011 2:04 PM (in response to ula.uvula)1 of 1 people found this helpfulSounds like a JBoss Tools bug, or maybe it's a feature ;-). I don't know if any of the Tools developers monitor this forum, the Tools forums is at http://community.jboss.org/en/tools?view=discussions. Perhaps a kindly administrator could move this post there, or if not you could place a brief post there (a sentence at the most) with a link to this post.
-
7. Deployment problem under Windows 7 / 64bit ?
maxandersen Jan 21, 2011 2:11 PM (in response to peterj)JBoss Tools simply copy the changed files - upto JBoss AS to detect if it wants to restart.
Thus nothing different from using this in jboss tools/eclipse or copying from command line.
lets continue on jboss tools if there are additional things.