• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Problem in including ejb packages in jsp

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic