- OS : Windows XP
- IDE : eclipse 3.7 Indigo
- WAS : jboss 7.0.0.Final
- DB : MySql
I coded EJB3 jar project and jsp war project. In war project I binded EJB project through "properites=>Java Build Path=> Projects Tab".
But When i run jsp, exception occurs. Exception is like below,
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.aaa.ejb3.ILogin resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.aaa.ejb3.Members resolves to a package
An error occurred at line: 17 in the jsp file: /test.jsp
ILogin cannot be resolved to a type
Context ctx = new InitialContext();
ILogin login = (ILogin) ctx.lookup("LoginBean/remote");
i think exception occurs in import line in jsp file.
<%@ page import="com.aaa.ejb3.ILogin"%>
<%@ page import="com.aaa.ejb3.Members"%>
I need your advice, thanks in advance!
do you encapsulate jar and war file in an EAR file or do you deploy them side by side?
Could you check the deployed war file? If war and jar are bundled in an ear, the war file should containt a "META-INF\Manifest.mf" with e.g. this content: