facebook

in tomcat, package does not exist

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #248097 Reply

    keithcybin
    Member

    I can see my package, src.com.cybinsurfboards.shopcart2 in the package explorer

    there are no errors in any of my code

    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\cybinsurfboards\org\apache\jsp\estore_jsp.java:6: package src.com.cybinsurfboards.shopcart2 does not exist
    import src.com.cybinsurfboards.shopcart2.*;

    when I did the hello world package it put a folder in under the webinf/classes folder
    but not for this package.

    Help please

    thanx
    Keith

    PS – This is only a two page shopping cart from a beginning JSP book that I ‘m trying to get to work.

    #248100 Reply

    Tringle
    Member

    Click menu’s window ->preferences->MyEclipse->J2EE Project->Web Project->Deployment(tab),then select the second option “Use smart Deployment for dependent Java projects(see ,notes)” and then click OK and rebuild your project.

    #248103 Reply

    keithcybin
    Member

    I’m lost, I did what yo said and it didn’t work. Can I please tell you what I’m doing. I just need to be able to add hello world at this point to an existing project.

    Your tutorial shows you how to “hello world” when starting a new project, but how do you add it to an existing project

    Thanx
    Keith

    #248104 Reply

    Tringle
    Member

    What do you exactlly mean?If you mean you can not found the relatived class ater deploying the project to Tomcat ,so what I replied above is will do even though it’s an existing project.

    #248109 Reply

    Riyad Kalla
    Member

    Keith,
    Your problem is even simpler than that, the problem is your source directory is wrong. You need to go to Java Build Path > Sources, and add your /src dir as your source dir, THEN your package com.blahblah will make sense, notice now that the way you have it setup Eclipse thinks your package is src.com.blahblah, this is wrong.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: in tomcat, package does not exist

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