0 Replies Latest reply on Jan 7, 2008 4:58 PM by rmarkey

    "Only a type can be imported. myPackage.myClass resolves to

    rmarkey

      Hello all,

      I am getting an, "Only a type can be imported. myPackage.myClass resolves to a package." exception when running a simple .jsp with the following import statement: <%@ page import="myPackage.myClass" %>. I tripple checked that myClass is indeed a class, and that myPackage is the full and correct package name. If I remove the import statement, the application runs sucessfully. I am running the web-app within Eclipse using JBoss version 4.2 and Eclipse version 3.3.0.

      I suspect this is a runtime configuration issue. I get this exception regardless if I include the source jar file in the Java Resources : src/ directory. Has anyone seen this problem before? I am running out of ideas an welcome any ideas.

      Thanks for your help!