[jboss-user] [EJB3] - can not bind war and jar project in jboss 7.0!
Joseph Hwang
do-not-reply at jboss.com
Thu Jul 28 06:11:46 EDT 2011
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"can not bind war and jar project in jboss 7.0!"
To view the discussion, visit: http://community.jboss.org/message/618012#618012
--------------------------------------------------------------
- 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
[http://community.jboss.org/message/618012#618012]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110728/194aa5fe/attachment.html
More information about the jboss-user
mailing list