aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Problem in including ejb packages in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem in including ejb packages in jsp" Watch "Problem in including ejb packages in jsp" New topic
Author

Problem in including ejb packages in jsp

priya pillai
Ranch Hand

Joined: Sep 12, 2007
Posts: 57
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

Joined: Oct 23, 2005
Posts: 3710
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
priya pillai
Ranch Hand

Joined: Sep 12, 2007
Posts: 57
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in including ejb packages in jsp