JBoss Community

can not bind war and jar project in jboss 7.0!

created by Joseph Hwang in EJB3 - View the full discussion

- 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

 

 

<%

try {

    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!

Reply to this message by going to Community

Start a new discussion in EJB3 at Community