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
bobheath
Post subject: Creating Web Development project with existing source  PostPosted: Jan 16, 2011 - 05:30 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

I have created a Web Development project with existing source, which is the sample code from Struts 2 in Action book.

I created a project under Eclipse 3.5.2 (Galileo) and the code seems to work fine.

I created a project under MyEclipse Version 8.6 which doesn't work OK. It seems that files were created and directories rearranged. For instance the file index.jsp was created.

Is there a prescribed method for creating a Web Development project from existing source such that additional files are not created?

Thanks - Bob Heath

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 16, 2011 - 06:00 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

I created a .war file from the Eclipse workspace, and imported the project into MyEclipse, but it appears that MyEclipse does not recognize the project as a Web Development project.

Also, I tried to import the jar file directly from the directory created by unzipping the files from the book. I cannot import that file.

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jan 17, 2011 - 05:49 AM



Joined: Nov 11, 2010
Posts: 2149

bobheath,

Can you create a new "Web Project" and paste the files under appropriate locations?

Let us know how it works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 01:30 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

Of course I can do that!

I use would expect that there are tools to automate that process. Are you telling me that I cannot import a Web Project with MyEclipse?

If Eclipse can do it, but MyEclipse cannot, can you tell me why am I buying MyEclipse?

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 01:32 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

support-swapna wrote:
bobheath,

Can you create a new "Web Project" and paste the files under appropriate locations?

Let us know how it works for you.


Let you know how that works for me?! Are you frigging kidding me?

That shallow "support" does not work for me at all!

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 07:55 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

This so-called support is pretty disappointing. I am not seeing that many questions on these forums, and my question seems to be pretty cut and dry. Plus, there are bunches of moderators that have the handle support-scott, support-michael, support-greg, Support-Brian, support-jed, support-nipun, support-joy, support-chakri, support-swapna. Where are these support people? What gives? Why does it take 48 hours to get a simple question answered? That is at least 48 hours so far.

Are you just waiting for the workforce in India to wake up and come to work? I hope not. If each interaction takes 24 hours, and I get a sloppy answer like the first one, this simple usability question will never get an answer.

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 17, 2011 - 08:02 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Bob,

Sorry for the confusion. Here's exactly how I imported and debugged the Struts in Action examples.

1) Download the SampleApplications.zip file from the Manning site
2) Unzip the archive to a new directory so we can access the two war files within it.
3) Start MyEclipse
4) Open Preferences > General > Capabilities and click "Advanced...". Then expand "MyEclipse Standard Capabilities" and scroll to the bottom and select "WTP Extras" and click apply and close the preferences with OK
5) Select File > Import... > Web > War file and select Struts2InAction.war. Accept all the defaults and click Finish
6) Within the workbench, right-click on the new Struts2InAction project and select Properties > Java Build Path. Then select the "Source" tab and select "Add folder...". Add the folder Struts2InAction/WebContent/WEB-INF/src and click "OK" to save all changes.
7) Within the workbench, right-click on the Struts2InAction project and select MyEclipse > "Enhance WTP Project..." and accept all the defaults.
8) To test the project, right-click on it and select Debug As... > MyEclipse Server Application

That should do it. Please let us know if you have any further questions.

By the way, in going through this I realized it was really more complex than it needs to be and put in an enhancement request to streamline this a good bit. We can surely make this simpler.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 08:07 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

Thanks Scott,

There is no File>Import>Web interface. If there was, I would have had this working yesterday.

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 08:11 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

bobheath wrote:
Thanks Scott,

There is no File>Import>Web interface. If there was, I would have had this working yesterday.


Tthat interface exists on Galilleo and Helios, but not MyEclipse version 8.6

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 17, 2011 - 08:12 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Please see step 4 and do it. :-)

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 08:23 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

Thanks Scotty

That seems to work, at least importing the war file. I have the following two suggestions:

1. Maybe you may want to have the setting in #4 to be the default selection. That setting is pretty well hidden. :-(
2. Educate the support person that gave me the initial answer on how to fix this problem.

But none the less, it works so far that is.

Thanks for your help!!! :-)

Bob

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 17, 2011 - 08:27 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

The sample application works too!!!

That is HUGE!!!

Thanks again Scotty!

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 17, 2011 - 09:23 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Bob,

Glad to help. And you're right about the defaults; that's why I entered a usability enhancement request for this. It's just too hidden the way it is. We'll get it tightened up for MyEclipse 9.0 in a few weeks.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobheath
Post subject:   PostPosted: Jan 18, 2011 - 01:17 PM
Registered Member
Registered Member


Joined: Aug 20, 2010
Posts: 31

As I have said before, I agree with that.

If you are going to create a MyEclipse configuration switch to disable a feature available in vanilla Eclipse, I believe that the default setting of that switch should be to enable that that feature which is available in vanilla Eclipse.

_________________
http://www.bobheath.com
http://www.aspnet.net
 
 View user's profile Send private message Visit poster's website  
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