facebook

[Closed] ClassNotFound Issues

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

    wloving
    Member

    Hello I am using Eclipse SDK
    Version: 3.1.2
    Build id: M20060118-1600

    and MyEclipse 4.1.1 GA

    I am having trouble with the deployment of one of my JSF web applications to Tomcat 5.0 through the MyEclipse deployment functions. My project is called “Commercial” is dependent upon another MyEclipse Web project called kklib. Both these projects are pretty good sized and have dependencies on about 50 jars files. The only way I seem to be able to get it even close to working is to load up every single jar into the “Prepend” classpath which MyEclipse provides. But I’m trying to take the high-road here and deploy the jars properly through the WEB-INF/lib directory. There are also a few jars ought to be on the Tomcat’s server’s classpath, however, when I start my server through MyEclipse Tomcat doesn’t seem to be able to find those jars — those in the common/lib and shared/lib directories. Also despite having “Smart Deployment” engaged MyEclipse takes the dependent library, kklib, and makes it a jar file rather than keeping in in exploded format.

    Thanks in advance.

    #274893 Reply

    Riyad Kalla
    Member

    wloving,
    I think the root of the problem here is that MyEclipse does not support dependencies between web projects… only a Web > Java dependency.

    So if you are deploying Web Project A to the app server, and it needs libs from Web Project B, you *will* need to manually copy out those libs to the app server, or add them to the classpath so the app server can find them universally for both projects.

    My suggestion would be to factor out the common code into a central Java Project, along with the libs, that both web projects can share.

    #275300 Reply

    wloving
    Member

    Riyad,

    Thanks for your suggestion. I removed the web project and recreated it as a java project and this worked fine. The deployment came up smooth as silk. I really appreciate it.

    #275387 Reply

    Riyad Kalla
    Member

    Very cool, I’m glad it’s working now.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] ClassNotFound Issues

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