MyEclipse: Eclipse having problem deploying web app on server

BryanAtwood - Jun 27, 2005 - 05:17 PM
Post subject: Eclipse having problem deploying web app on server
I'm working on software that was developed in intellij. I have imported the app into eclipse and eclipse will not see it as a web application. Nor will it deploy to my tomcat server. Any Suggections??
support-rkalla - Jun 27, 2005 - 09:40 PM
Post subject:
Can you please post all the information we request in the Posting Guidelines thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
BryanAtwood - Jun 28, 2005 - 01:26 PM
Post subject:
XP Home
MyEclipse Build 3.8.4
JDK 1.4.8
Rinning same version on server
support-rkalla - Jun 28, 2005 - 02:32 PM
Post subject:
What I would suggest is creating a new web project (File > New > Project > Web Project) and dropping the artifacts into the appropriate location from your existing project. To get an idea of how MyEclipse will behave and the facilities you have at your disposal when working with webapps, please look at our guides here: http://www.myeclipseide.com/ContentExpress-display-ceid-67.html
BryanAtwood - Jun 28, 2005 - 03:47 PM
Post subject:
Yes the problem did get resolved yeaterday but the problem is back today. In the MyEclipse menu it has no options to add web capabilities. The project was developed in IntelliJ and imported into eclipse. I'm thinking it's some type of formatting issue. Eclipse sets up a struts application file layout by default. The imported project doesen't fit the file layout.

Unclear and totaly lost on what the problem could be.
support-rkalla - Jun 28, 2005 - 04:58 PM
Post subject:
Bryan,
Send me the original project and I'll see if I can put it together into a web project for you. support@myeclipseide.com ATTN Riyad, be sure to reference this thread so I know why I'm getting the file.
support-scott - Jun 28, 2005 - 05:03 PM
Post subject:
Quote:

Yes the problem did get resolved yeaterday but the problem is back today.

I have no idea what the context of this statement is. What was fixed and what is now "back"?

Quote:

In the MyEclipse menu it has no options to add web capabilities.

It's called "Add WebProject Capabilities..." and is followed by "Remove WebProject capabilities..." , which are the last two items in the first group of actions under the MyEclipse menu in the main menu bar. If they're not present, either active or inactive, then you have a bad installation. If "Add..." is not active then either you don't have a project selected in the Package Explorer view (try reselecting it), or the project already has web project capabilities (in which case only "Remove..." should be active). So, what's that state of the menu and what is on it, *precisely*?

Quote:

The project was developed in IntelliJ and imported into eclipse.

After you imported it, did you run the "Add web project capabilities..." wizard? If not, then it won't be deployable.
BryanAtwood - Jun 28, 2005 - 09:15 PM
Post subject:
MyEclipse will only let me add Hibernate Capabilities to a project. I even made a project using the Web Project Wizard and MyEclipse will not let me add or remove webproject capabilities. Well as for sending the source code thats not going to happen, boss said source code dosent leave the building.
support-rkalla - Jun 28, 2005 - 09:19 PM
Post subject:
Web Projects already have Web Capabilities added to them. If you created a web project, just try copy-pasting the artifacts from your INtelliJ project into the new project (Source code goes into source folder, JSPs into WEbRoot, etc. etc.).
BryanAtwood - Jun 28, 2005 - 09:36 PM
Post subject:
I did that but as soon as I copied everything over, all the capabilities became disabled again.
support-rkalla - Jun 28, 2005 - 09:38 PM
Post subject:
It sounds like you have some dot files (.<blah>) from a previous eclipse install in the IJ project already, double check if you do or not (open the project in Windows explorer). It's possible that an old .project file from Eclipse could be overwrwiting the new one and crapping on everything.
BryanAtwood - Jun 28, 2005 - 09:44 PM
Post subject:
should i delete the existing .project file??
support-rkalla - Jun 28, 2005 - 10:12 PM
Post subject:
Bryan,
Just ot make sure we are on the same page, when I said create a new project and drop the pieces in bit by bit, I didn't mean create a new project then grab the entire existing project and just drop it ontop of it. What I meant was to drag the JSPs into the Webroot, the WEB-INF dir contents into the project, source code into the source dir and so on and so on.

If you are asking if you should remove the .project file from the Eclipse project, no, Eclipse needs this. If you are asking if you should remove the .project file from the original IntelliJ project, then YES, it shouldn't be there.

I really don't see if you followed my suggestion how you are ending up with the situation you are having if you are moving it piece by piece over.
BryanAtwood - Jun 29, 2005 - 01:11 PM
Post subject:
Yes I droped everything in piece by piece and it still does not work.
BryanAtwood - Jun 29, 2005 - 01:24 PM
Post subject:
Is their anything in the .project file I can change to give the project WebProject Capabilities

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Oasis</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.sse.model.structuredbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
BryanAtwood - Jun 29, 2005 - 01:36 PM
Post subject:
How much does it cost to get phone support or can you even get phone support??
support-scott - Jun 29, 2005 - 04:42 PM
Post subject:
Bryan,

We don't have 'per incident' phone support; it's provided only as part of our enterprise agreements at this time.

Back to your problem, you seem to be hung up on the concept of Web Project capabilities. According to your .project file, the project already *is* a MyEclipse web project. So, can you be very specific as to what is not working as you expect it to? Even after all these posts, you haven't given us any detail other than "it doesn't work". We need some specfics of what you expect and what it's doing instead to be able to tell you if this is a configuration issue and suggest changes to help you. Can you explain how your new project is laid out? It's directory structure, web root location, etc?
BryanAtwood - Jun 29, 2005 - 05:20 PM
Post subject:
I try to deploy my program to the server using the Manage Deployments Box. Shouldn't my program be in the drop down box in the upper left part of the Manage Deloyments Box? My problem is that my program is not showing up in the Manage Deployments Box, if it's not there I can't deploy it to the server.
support-rkalla - Jun 29, 2005 - 05:39 PM
Post subject:
Check your log file for exceptions (<workspace dir>\.metadata\.log) see if there is any exception pertaining to the project.

Next right click on your project and go to Properties, do you see a MyEclipse-Web properties panel? If so, what are the values you have entered? Have you tried restarting MyEclipse using the -clean command line argument as outlined here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343

Have you tried creating a new Web Project (File > New > Project > Web Project) and immediately opened the deployment window and seeing if that new one is shown?


Also I would like your Eclipse version and Build ID from your Help > About screen as well as your version and build ID Of MyEclipse from your Window > Preferences > MyEclipse screen.
support-scott - Jun 29, 2005 - 06:08 PM
Post subject:
Quote:

Shouldn't my program be in the drop down box in the upper left part of the Manage Deloyments Box?

Yes, it should and it's odd that it isn't. Do you have a server configured? When you use our New Web Project wizard and create a new, empty web project does it show up in the deployment manager dialog? It sounds like some of the metadata ('.' files) have been lost or corrupted in the project you're working on. If the new project *does* show up for deployment, can you add your source to it in the appropriate directories? Does it become "undeployable" at some point in this process? Note that you should *not* copy over any '.' files from one project to the new one; just your own source and descriptors, etc.
BryanAtwood - Jun 29, 2005 - 06:54 PM
Post subject:
Riyad

Eclipse SDK 3.1M5 can't find the build ID
MyEclipse 3.8.4+QF2 Beta for 3.1 Build ID 200502031200- 3.8.4+QF2 Beta for 3.1

When try to open the MyEclpise-Web properties panel it gives me this error: The currently displayed page contains invalid values.

I have tried to make a webproject from scratch and deploying it still will not display in the Manage Deployments Box.

There is an error in the error log: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

Scott

Yes I have Tomcat 5.0 Configured

New projects don't show up in the deployment manager dialog.
support-rkalla - Jun 29, 2005 - 07:15 PM
Post subject:
Quote:

Eclipse SDK 3.1M5 can't find the build ID
MyEclipse 3.8.4+QF2 Beta for 3.1 Build ID 200502031200- 3.8.4+QF2 Beta for 3.1

We never did a M5 compatiable build... I'm going to guess that this is likely 90% of the cause of your problems. Before we even conitnue down this path, please try and download Eclipse 3.1 GA (released today) and then download MyEclipse 4.0 Milestone 2 Beta for Eclipse 3.1 (released this morning as well) from our site.

Using incompatible builds of Eclipse and MyEclipse is such a nightmare to track down bugs in because all of this could be simple API breaks between ME and E and not bugs at all.
BryanAtwood - Jun 29, 2005 - 07:54 PM
Post subject:
Thanks guys I'll try that and let you know how it goes. Should I uninstall both eclipse and myeclipse and start from scratch??
support-rkalla - Jun 29, 2005 - 08:48 PM
Post subject:
Quote:

Should I uninstall both eclipse and myeclipse and start from scratch??

Yes, not a bad idea.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits