MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gazzy
Post subject: Build Automatically not fully working  PostPosted: Oct 11, 2011 - 11:26 PM



Joined: Oct 11, 2011
Posts: 6

My project consists of several JAR modules and a WAR module with the 'Build Automatically' feature checked.

When I make changes in the JAR modules, everything works fine. However, when I make changes in the WAR module, the java classes I made changes to are not recompiled. All other changes (JSPs, properties, js etc) reflect.

Is there anything in particular I need to do to get the java classes to recompile on change?

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 12, 2011 - 07:10 AM



Joined: Nov 11, 2010
Posts: 2491

gazzy ,

Sorry that you are seeing this issue with MyEclipse.

1) Can you share your Build ID from Help > About MyEclipse Enterprise Edition > Build ID ? Paste the Build ID here.

2) Which server are you deploying your project to ? Can you clarify if you are seeing the same issue with java classes in the JAR modules ?

3) If you are working on Tomcat, then to take advantage of the Hot sync feature :

1) You must be running your app server in debug mode, double check your connector settings under Windows > Preferences > MyEclipse > Application Servers > Tomcat 5 > Launch
2) You must be using an exploded deployment: Open the deployment tool and make sure you are using an Exploded, NOT a packaged, deployment.
3) You must have automatic building turned on.

Let us know how it works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gazzy
Post subject:   PostPosted: Oct 12, 2011 - 04:25 PM



Joined: Oct 11, 2011
Posts: 6

Thank you Swapna,

Build id: 9.1-20110701

I am deploying to JBoss 4.x. It works fine on the java classes in the JAR modules. I am using the exploded deployment and I am running in debug mode.

I am actually using JRebel for the sync.
I have 'Build Automatically' turned on. When I make changes to java classes in the JAR module and save, I can see the change in the timestamp of the compiled *class file. However, this does not happen when I do the same in the WAR module.

I have checked the Java Build Path source folders and it shows the correct output folder (xxx_war/target/classes) for xxx_war/src/main/java.
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 13, 2011 - 08:21 AM



Joined: Mar 09, 2011
Posts: 916

gazzy,

I'm afraid we're still a bit unclear on your project set-up. Clearly, you're using Maven but it's not clear how the different projects are related to produce a web application or an EAR application. Could you perhaps show us the relationship - a screenshot might help. Also, are you seeing no updated class file in target/classes in the workspace, when you edit and save a Java file? If so, how did you do the original deployment if java files were not being compiled automatically?

To round things off, could you say how you created the projects (e.g. which wizards or was it an import and did you do any tweaking to get things the way you wanted) and what your OS is?

Thanks,

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gazzy
Post subject:   PostPosted: Oct 17, 2011 - 05:40 PM



Joined: Oct 11, 2011
Posts: 6

I was trying to add an image of my project workspace setup but could not find how to do it on here. The 'Img' button does not seem to work.

All the modules are Maven Projects by themselves with some dependencies among some.
All the JAR modules have a 'jar' packaging and the WAR module has a 'war' packaging.
We do have a 'pom' project which builds all the various modules and deploys the generated war file to JBoss (exploded). The deployment to JBoss is a custom maven plugin.

We have been using the automatic building for synchronizing code changes but that has not been going very well, so for the most part, we have to do a maven build using the 'pom' project.
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 18, 2011 - 11:41 AM



Joined: Mar 09, 2011
Posts: 916

gazzy,

I'm not sure what you mean by the 'Img' button. Screen capture is normally done via the PrtScrn key (which may save the screen image or copy it to the clipboard, depending on the operating system). MyEclipse also has a screen capture utility on Windows (MyEclipse->Utilities->Screen Capture).

If you can't provide a screenshot, could you be a bit more explicit about your project structure? Perhaps just showing the structure in text?
How were the projects created? With MyEclipse wizards? Are the web modules seen as web projects by MyEclipse?
Does MyEclipse know about the source folders in the WAR projects?
How did you do the initial deploy? Was it through a pom build?
If the deployment is through a special maven plug-in, how does MyEclipse know about the deployment? Does it show up in the Deployment Manager of MyEclipse?
What is your operating system and version?
Are there any messages in the log file that might be related to the issue your'e seeing?

Sorry for so many questions but I can't quite see how you're set up, to be able to offer much advice. One thing you could try is to create a single and simple web project, with a Java class, that you can deploy to the server and then try changing that class. If it still doesn't work, it might help to send up that project and the steps you took to create and deploy it, so that we can try to replicate the problem here.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gazzy
Post subject:   PostPosted: Oct 18, 2011 - 06:41 PM



Joined: Oct 11, 2011
Posts: 6

Screen capture is not the problem. When posting my reply, I do not see any feature / option which allows me to include an image. I can capture the screens to the clipboard and I can save them to file as well, but cannot include them in the post.

How do I send you the screen shots.
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 19, 2011 - 05:17 AM



Joined: Mar 09, 2011
Posts: 916

gazzy,

Sorry for the misunderstanding.

You can attach various files by going to the "Add an Attachment" section below the reply box. This only appears when posting a response. Browse for your file, add a comment and click the Add Attachment button, before you click the Submit button. Attached images appear at the bottom of the post.

Alternatively, you can upload the image to an image hosting site and add the image directly to your post using the [img][/img] tags round a web address. The Img button just adds those tags round the selected text.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gazzy
Post subject:   PostPosted: Oct 19, 2011 - 06:15 PM



Joined: Oct 11, 2011
Posts: 6

I have attached a screen shot of my workspace which shows how the modules are organized and also shows the pom.xml contents for the pom project which builds and deploys the application.



Image

To take advantage of the hot sync feature, we have the war deployed to JBoss within MyEclipse in Exploded format. (However, this has not been working well for us either.)

Image

Let me know if this gives you a better picture and there is anything else you will want me to provide.

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
gazzy
Post subject:   PostPosted: Oct 19, 2011 - 06:21 PM



Joined: Oct 11, 2011
Posts: 6

I am not sure if the images came through for you. I could not find the direct upload feature here.
1st image link
http://imageshack.us/photo/my-images/98/projectsinworkspacebuil.jpg/

2nd image link
http://imageshack.us/photo/my-images/441/projectsinworkspaceserv.jpg/
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 20, 2011 - 09:47 AM



Joined: Mar 09, 2011
Posts: 916

gazzy,

The images didn't come through but I could get to the links you posted, though the images were a little blurry. However, they've given me a better idea of your project set up. Here is a link to an FAQ about attaching files to a pm (private message) or to a normal post: http://myeclipseide.com/PNphpBB2-viewtopic-t-27029.html

Do the class files get updated in your output folder, xxx_war/target/classes, when you save code changes? This would be standard eclipse behaviour. However, the output folder you described doesn't seem to be a standard maven output folder for web applications. I might have expected something like xxx_war/target/xxx_war/WEB-INF/classes.

Also, I'm no Jrebel expert but Jrebel appears to need a jrebel.xml file in each module to map the class files. Do you have that set up correctly?

For more support on the use of Jrebel to sync changes, especially with maven involved (which might complicate matters), I'd suggest posting on a Jrebel forum where there is likely to be better support for Jrebel/eclipse issues, as Jrebel is not part of MyEclipse. But we'll help where we can.

Please let us know if any of this helps.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits