Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
spirit21
Post subject: [Closed] Deploy / redeploy on Tomcat 5.5 won't work  PostPosted: Nov 23, 2007 - 11:00 AM
Registered Member
Registered Member


Joined: Nov 13, 2007
Posts: 5

Hello!

I am trying to get a web application running on Tomcat 5.5.
But I can't get MyEclipseIDE to deploy it on Tomcat. Everytime I try to do that it just say's
Quote:
Deployment failure on Tomcat 5.x. Could not copy all resources to C:\Programme\Apache Tomcat 5.5\webapps\Client. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\Programme\Apache Tomcat 5.5\webapps\Client


Tomcat is not running and I can undeploy the application without problems. I already tried to refresh and clean the project and to start Eclipse with -clean.
There are some errors in my jsp files according to the JSP validator. But my web application ran before with eclipse with no problems in spite of the jsp errors.

Any clue how to get this working?

Greetings, Janina R.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 23, 2007 - 05:13 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Can you please make sure you configured connector looks like this:-
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-13941.html

Can you stop the server, shutdown MyEclipse, restart MyEclipse, refresh your project and try redeploying the project again. Does it work ?

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
spirit21
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 26, 2007 - 07:31 AM
Registered Member
Registered Member


Joined: Nov 13, 2007
Posts: 5

Yes, I configured the connector like that and I tried to restart MyEclipse and redeploy the project again. Still it won't work ...
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 26, 2007 - 02:18 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Please switch to a new workspace, configure the connector again, create a new web project and try deploying it. Does that work ?

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
spirit21
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 27, 2007 - 01:32 PM
Registered Member
Registered Member


Joined: Nov 13, 2007
Posts: 5

The deployment works now. But I have no clue why.
I guess it was because I always just use hibernate to shut down my laptop. After I restarted it it worked ...
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 27, 2007 - 04:37 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Glad its working now. Thanks for letting me know.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
spirit21
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 28, 2007 - 09:01 AM
Registered Member
Registered Member


Joined: Nov 13, 2007
Posts: 5

Now I have another problem while trying to deploy my stuff on tomcat.
Although it worked in between now I can't set tomcat as a server for my webapp.

I go to "MyEclipse" -> "Add and Remove Project Deployments" -> "Add", select my tomcat connector but there won't be displayed a path to my deploy location. It's just grey.

If I try it another way (selecting the server and click on "Manage Deployments", "Add" and select my project) the path wont be shown too. But if I select my test project in the same workspace the path for that one will be shown.

And if I try to right click on my project and select "Run As" -> "MyEclipse Server Application" and select tomcat I get a NullPointerException:
Code:
An internal error occurred during: "Launching SkillManagementWebUI on Tomcat  5.x".
java.lang.NullPointerException


I configured my connector like shown in the link you've posted. I also tried to set up a new workspace with a test project. When I do that it all works, the path will be displayed and the deployment works just fine. But when I try to do that for my project, even in a new workspace, the problem just discribed will occure.

I also reinstalled MyEclipse - but nothing changed. My collegue does have the same problem now. Until yesterday morning it worked ...

I really have no clue what to do or try ... and this i a big show stopper, we can't continue our implementation ... Help plz? ^^

Greetings, Janina R.

PS: One quess was that the projects name has blanks in the name and that this causes the problem but renaming it didn't help.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 28, 2007 - 03:57 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

This could be an issue with your project. Maybe your project is corrupt. I would suggest you create a new web project and transfer files from your old project to this new project and check if it works.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
spirit21
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 29, 2007 - 09:33 AM
Registered Member
Registered Member


Joined: Nov 13, 2007
Posts: 5

After transfering the files into a new project manually the deployment works.
Really strange, I hope it will work from now on.

Thank you.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Deploy / redeploy on Tomcat 5.5 won  PostPosted: Nov 29, 2007 - 03:59 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Your welcome.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
mrjabba
Post subject:   PostPosted: Jun 11, 2008 - 04:40 PM
Veteran Member
Veteran Member


Joined: Aug 23, 2004
Posts: 6

I know this topic is closed now but I wanted to add my experience to it from today.

I've seen this where case where the Add button on the Manage Deployments dialog is grey or greyed out. It's the weirdest thing. This was happening to me on Ubuntu Linux today but I don't think that matters. Also, I'm using MyEclipse 6.x. And, this also happened to a colleague of mine using Windows a few weeks ago. It was maddening and I couldn't figure it out at the time.

It seems that if the current open project doesn't have focus, this occurs. Make sure to click somewhere on your project in your project explorer. Then click the Deploy button again to bring up the Manage Deployments dialog.

So, to re-create this problem click on a closed project on your package explorer then try to deploy. It should be greyed out.

I don't know if this is really a bug as much as it is a UI quirk?

Good luck!
Kevin Hutson
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Jun 11, 2008 - 04:56 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Kevin.
When you open the Manage Deployment dialog, you should have a project selected in the project dropdown to activate the Add Button. Can you please confirm that a project was selected in the drop down and the Add button remained greyed out.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
mrjabba
Post subject:   PostPosted: Jun 11, 2008 - 05:01 PM
Veteran Member
Veteran Member


Joined: Aug 23, 2004
Posts: 6

Hi Nipun,

That was sort of what I was saying :-) And, I figured it out this morning.
If you DON'T have a project selected it will be greyed out when you open the Manage Deployment dialog. I think I never noticed that previously and was wondering why it was greyed out.

So, I'm OK now.

Thanks!
Kevin
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Jun 11, 2008 - 05:04 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Glad you figured that out :)

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits