facebook

Deploying as WAR file is not including some JAR

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #320418 Reply

    Greg Soulsby
    Member

    I have my project working nicely in dev.

    But after deploying to my ISP an exception is thrown when the WAR file is unpacked.

    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘MyClassService’ defined in file [/xxx/apache-tomcat-6.0.24/webapps/yyy/WEB-INF/classes/yy/service/MyClassServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/mail/internet/AddressException

    it seems to be saying it cant find the mail.java class.

    When I look in the libs folder on the server the mail.jar is not there. Nor are a couple of other jar files that I am using.

    In MyEclipse the jar files are in the libs folder, they have been included in the java build path and when I look at the Project Properties->Java Build Path->Order and export the three .jar files are there.

    So what could be happening that they are not deployed? I am running Export on the project from MyEclypse, copying the war to tomcat/webapps and restarting tomcat.

    #320583 Reply

    cconway
    Member

    You could try putting the jars under web-inf/lib. That should make them automatically be exported. Alternately, take a look at the Deployment Assembly panel of the project properties. (Right-click on the project, select Properties, select Deployment Assembly on the left).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Deploying as WAR file is not including some JAR

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