facebook

Can not manage deployments

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #206031 Reply

    iklotzko
    Member

    I have originally added a deployment to my project. However, when I try to deploy the j2ee project and I get different types of errors.

    1. Deployment is out of date due to changes in the underlying contents. It suggests I manually “Redeploy” to update the archive. I have manually built my project, refreshed the project, exited eclipse, came in again, and it still occurs.

    2. Before I was getting an error saying that it already is deployed and I’ll need to stop the server and remove a resource. I since have tried that several times with no success.

    Ira

    Thank you for any help you can provide.
    – System Setup ——————————-
    Operating System and version: Windows Advanced Server 2000 sp4
    Eclipse version: 3.0 M8
    Eclipse build id: 200403261517
    Fresh Eclipse install (y/n): y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: some, but they were removed
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.7.2
    Eclipse JDK version: 1.4.2_03
    Application Server JDK version: tomcat 5.x
    Are there any exceptions in the Eclipse log file? ?

    – Message Body ——————————-

    #206034 Reply

    Riyad Kalla
    Member

    Ira,
    Try this:

      1) Stop your application server (make sure you are starting/stopping it from MyEclipse and not from a bat file or system service)
      2) Close your project
      3) Restart Eclipse
      4) Open your project, and Refresh it
      5) Now go to the Project menu and do a “Rebuild Project”
      6) Go to the deployments dialog and remove the existing deployment. Add a new Exploded deployment, and redeploy your project.
      7) Now start your application server.

    Did this work?

    #206042 Reply

    iklotzko
    Member

    I tried this, and yes it works for deleting it. but we use a different build structure. We place all our jsp/html resources directly under webapps/app-name rather than under WEB-INF/classes. Is this a requirement? We are currently using our own ant build script to do this.

    ik

    #206044 Reply

    Riyad Kalla
    Member

    There is no requirement for you to put your resources anywhere in particular (I’m assuming you meant CSS/Images/etc), why do you ask?

    Can you explain how you use the Ant script? If you run the Ant script and THEN try and deploy without doing a refresh, then yes I can understand the error since Ant will change some files behind the scenes in the project that won’t get deployed. If you are using the Ant script TO deploy your webapp… then I’m not clear why your original post is about our deployment tool (since the ant script would be doing the deployment).

    I need some detail about your process of execution, what the expected out come is and what is happening.

    #206045 Reply

    iklotzko
    Member

    I wasn’t sure if I needed a deploy, in fact, if it’s not a requirement then I’ll keep using the ant-script. The ant script compiles and copies resources (jsps/css/html/img) to our tomcat/webapps/app.name folder in the correct location. But, if I don’t need this, then no problem. Sorry if I led you astray.

    Ira

    #206048 Reply

    Riyad Kalla
    Member

    No problem, yes the deployment tool we provide is optional. Some people love it, some people don’t. Some people have such complex projects, that they can’t make use of it so they use their Ant scripts.

    What you do need to know is that if you want debugging, you will need to launch your app server from MyEclipse, this allows the remote debugger to connect up with the application server. Besides that, you don’t have to use things in MyEclipse that you don’t find helpful, we won’t force you to like them 😀

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Can not manage deployments

You must be logged in to post in the forum log in