[jboss-user] [EJB3] - build path configuration on jboss 7.0.2

Joseph Hwang do-not-reply at jboss.com
Sun Dec 11 19:37:21 EST 2011

Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion

"build path configuration on jboss 7.0.2"

To view the discussion, visit: http://community.jboss.org/message/640949#640949

My development environment is JBoss 7 and Eclipse Indigo.
I made ejb jar project. Jar project has EJB interface and EJB bean. Deployment was successful.
I also made jsp war project. And in java build path menu I set link with ejb3 jar project i made on project tab.

But exception is thrown 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.IEJBHelloWorldPort resolves to a package

An error occurred at line: 17 in the jsp file: /display.jsp
IEJBHelloWorldPort cannot be resolved to a type
14: <% 
15: try {
16:     Context ctx = new InitialContext();
17:     IEJBHelloWorldPort hello = (IEJBHelloWorldPort) ctx.lookup("EJBHelloWorldBean/remote");
18:     String id = request.getParameter("id");

This process worked well in JBoss 5.1. I have no idea what is wrong. Is there another process to
configure build path link of ejb jar project with web project on eclipse indigo?

Pls, inform me.
Thanks in advance and Merry Christams  :)

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111211/6fae3bc3/attachment.html 

More information about the jboss-user mailing list