facebook

Spring deployment to tomcat

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #333876 Reply

    Empty
    Participant

    Hi,

    I’m trying to get ramped up on development, I’m a newbie with MyEclipse IDE and Spring and when I use the “Manage Deployment” button and do a deployment to my local tomcat instance, the global.properties file doesn’t get deployed along with anything else that should be in my application/WEB-INF/classes folder. Any suggestions?

    When i do a deployment, i get this error:

    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [global.properties] cannot be opened because it does not exist
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)

    I can manually copy this file here but then all my classes don’t get copied either.

    Thanks!

    Cheers,
    Charles

    #333894 Reply

    support-swapna
    Moderator

    Charles,

    Sorry that you are seeing this issue.

    1. Can you please make sure that the file is put on the server’s classpath outside of your web application or packaged within the WAR/EAR? Where exactly did you place the file in your project structure ?

    2. Another cause for this problem could be that you have build errors in your project. Check the Problems View in MyEclipse.

    3.Can you please send the zipped project to help us replicate the issue at our end?

    4. Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now try deploying the project and copy paste the entire error logged in the .log file here for us.

    5. Also share the Installation Details from MyEclipse > Installation Summary > Installation Details.

    #333921 Reply

    Empty
    Participant

    Hi,

    I wasn’t really sure how to answer the questions you’ve sent. For #4, I found the log file but strangely enough, the file had no name.

    The 2 developers trying to help me both have Eclipse 8.x and when i tried to re-import the project from CVS, I got a popup saying some parts had to be upgraded if Using Eclipse 9 or above.

    I tried to find a 8.6 MyEclipse download but could not find it. Any chance somebody could paste this link if you have it?

    Cheers,
    Charles

    #333932 Reply

    support-swapna
    Moderator

    Charles,

    Since the base Eclipse version of MyEclipse 8 and MyEclipse 9 are different, the project needs to be upgraded to work with MyEclipse 9. The wizard will take care of the upgrade. You should see no issues in working with the project after the upgrade.

    If you still want to download MyEclipse 8.6, as a MyEclipse subscriber you have full access to any version of MyEclipse that you choose to utilize and we will be glad to provide you with a download link to your chosen release.

    However, all requests for previous releases are handled by our sales team to ensure your complete satisfaction. Please send an email to sales@genuitec.com and they will be able to assist you. Be sure to include your name, subscription id, subscription code, MyEclipse version desired, and operating system so they can provide the correct download link without delay.

    Let us know if you see any issues.

    #333952 Reply

    Empty
    Participant

    Hi,

    I think I might actually be closer to getting my spring application setup in MyEclipse and believe I might be one setting away from having this working.

    If I should start a new thread with this, please let me know and I will do so.

    In MyEclipse, i can now do an ant build on my build.xml and can partially do a new deployment. Partially because we have .hbm.xml files in our src/com.xxxxx.pojos folder that aren’t getting deployed to my tomcat folder (and aren’t going to in my pojos workspace folder either) and I’m not really sure why. The other developers here say this is working for them and we are using the same build.xml file so I’m assuming it’s some kind of setting missing but I have no idea what that would be.

    Any help would be appreciated!

    Thanks,
    Charles

    #333955 Reply

    Empty
    Participant

    My last issue was resolved doing this (in case this helps someone else):

    Right click on build.xml

    select properties

    in “Run/Debug” settings, select your project click “edit”

    Select the “Targets” tab.

    Make sure “package” is checked.

    Cheers,
    Charles

    #333986 Reply

    support-swapna
    Moderator

    Charles,

    Glad that you got it working.
    Do let us know if you see any issues.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Spring deployment to tomcat

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