Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in including ejb packages in jsp

 
priya pillai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,


I created ejb programs using xcolets in eclipse.I imported some jsp files to work with ejb which i created using import.


When i import ejb session packages in jsp eclipse is displaying packages.also during development i am not getting any error in package names or the session bean name.

After deployment when i run the program i am getting the error of

C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
probably occurred due to an error in /jspPages/testing.jsp line 8:
<%@page import = "order.headsess.*" %>

C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
probably occurred due to an error in /jspPages/testing.jsp line 21:
HeadHome home = null;

C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
probably occurred due to an error in /jspPages/testing.jsp line 22:
Head remote =null;

C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
probably occurred due to an error in /jspPages/testing.jsp line 96:
home =HeadUtil.getHome(env);


--------------------------------------------------------------------------------
Full compiler error(s):
C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
^
C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
symbol : class HeadHome
location: class jsp_servlet._jsppages.__testing
HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
^
C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
symbol : class Head
location: class jsp_servlet._jsppages.__testing
Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
^
C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
symbol : variable HeadUtil
location: class jsp_servlet._jsppages.__testing
home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
^
4 errors



.Sorry i am not working in ejb or jsp.I am doing my first project.So i am not familer with tecnical term

thanks in advance
priya
 
Scott Selikoff
author
Saloon Keeper
Posts: 4020
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try packaging the files in a JAR that is WEB available in the application's WEB-INF/lib directory. Servlets should then have access to the appropriate files.

Keep in mind, you don't need to publish the entire EJB to this jar, just the remote/home files that transfer information. The EJB itself should be running as a live application that the servlet connects to.
 
priya pillai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your reply.

Actually i a using xdoclet to create ejb files..That is why i totally confulsed.Here i am not manually creating any war or jar files...

I done some jsp files in one web application module and i import using import function in eclipse.

i am not using any servlet here...only some jsp files and ejb

thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic