- This topic has 5 replies, 2 voices, and was last updated 21 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
ErikEngerdMemberHi,
The normal behavior of Ecliipse for Java projects is to compile the source file as soon as it is saved. This, I believe, still happens, but when I modify a file, my EJB is not automatically redeployed.
Info:
* Eclipse: 2.1.1
* JBoss: 3.2
* Workbench 2.5.1
* Deploying a stateless session bean with exploded deployment.In this case, the application is only redeployed when I select ‘rebuild project’ or ‘rebuild all’. How do I configure Eclipse to redeploy my application every time I save a file?
Cheers
Erik
ErikEngerdMemberHi,
I also re-installed Eclipse and the Workbench plugins and did not install any other plugins. The effect is the same, whenever I modify a file, redeployment does not take place.
Cheers
Erik
ErikEngerdMemberHi,
I also took a look at the eclipse log file. There is one entry in it which could explain the problem perhaps:
!ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:32:50.260
!MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.serverThe complete log file is as follows:
!SESSION Aug 12, 2003 00:02:01.991 ———————————————
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
!ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:02:01.991
!MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server
!ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:02:22.861
!MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.server
!SESSION Aug 12, 2003 00:32:50.260 ———————————————
java.version=1.4.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
!ENTRY org.eclipse.ui 4 4 Aug 12, 2003 00:32:50.260
!MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.serverCheers
Erik
ErikEngerdMemberHi,
I also removed all Java VM installations from my machine and made sure I have only one JDK installed (the latest: 1.4.2). The problem still exists.
Cheers
Erik
ErikEngerdMemberOops,
Sorry for all the confusion but I have solved the problem.
I forgot to mention that JBoss was running in a separate command prompt window. Wenn I run JBoss from inside Eclipse everything works.Nevertheless, it would be nice if it would be possible to use sync-on-demand when the server is already running somewhere else. Last time, I got errors indicating there was not enough memory, which required me to restart Eclipse. By being able to start the JBoss server in a separate process, perhaps this problem could be solved. My computer has 512 MB of memory.
Anyway, I am glad that the problem is solved now and I am getting quite happy with the MyEclipse workbench.
Cheers
Erik
😉
Scott AndersonParticipantErik,
Last time, I got errors indicating there was not enough memory, which required me to restart Eclipse. By being able to start the JBoss server in a separate process, perhaps this problem could be solved.
You can configure how much memory is given to Eclipse by changing the startup alias to use the -vmargs command to specify more. For example:
-vmargs -Xmx256MIf it is JBoss that is running out of memory, on the JBoss > JDK configuration page you can specify Optional VM Arguments to give JBoss more memory. For example:
-Xms128M
-Xmx256MWhich you use depends on whether it is Eclipse that is running out of memory or whether JBoss is reporting that it is running out of memory.
Anyway, I am glad that the problem is solved now and I am getting quite happy with the MyEclipse workbench.
Always good to hear! 🙂
–Scott
MyEclipse Support -
AuthorPosts