problem in importing package

Reply

Join Date: Oct 2007
Posts: 6
Reputation: priyapratheep is an unknown quantity at this point 
Solved Threads: 0
priyapratheep priyapratheep is offline Offline
Newbie Poster

problem in importing package

 
0
  #1
Oct 25th, 2007
Hi friends,

I am new bie to programming.This is my first project.so the tecnical terms i am not familier.

I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server

I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.

I imported EJB pakcges into jsp and created session
  1. HeadHome home = null;
  2. Head remote =null;

at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of

  1. Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
  2. --------------------------------------------------------------------------------
  3. 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
  4. probably occurred due to an error in /jspPages/testing.jsp line 8:
  5. <%@page import = "order.headsess.*" %>
  6.  
  7. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
  8. probably occurred due to an error in /jspPages/testing.jsp line 21:
  9. HeadHome home = null;
  10.  
  11. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
  12. probably occurred due to an error in /jspPages/testing.jsp line 22:
  13. Head remote =null;
  14.  
  15. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
  16. probably occurred due to an error in /jspPages/testing.jsp line 96:
  17. home =HeadUtil.getHome(env);
  18.  
  19.  
  20. --------------------------------------------------------------------------------
  21. Full compiler error(s):
  22. 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
  23. import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
  24. ^
  25. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
  26. symbol : class HeadHome
  27. location: class jsp_servlet._jsppages.__testing
  28. HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
  29. ^
  30. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
  31. symbol : class Head
  32. location: class jsp_servlet._jsppages.__testing
  33. Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
  34. ^
  35. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
  36. symbol : variable HeadUtil
  37. location: class jsp_servlet._jsppages.__testing
  38. home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
  39. ^
  40. 4 errors
  41.  
  42.  
  43. --------------------------------------------------------------------------------
  44. Fri Oct 26 01:40:14 GMT+08:00 2007


pls help me to sort out my prob
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 80
Reputation: lookof2day is an unknown quantity at this point 
Solved Threads: 10
lookof2day lookof2day is offline Offline
Junior Poster in Training

Re: problem in importing package

 
0
  #2
Oct 30th, 2007
Are you still facing problem. Send your directory structure
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 6
Reputation: priyapratheep is an unknown quantity at this point 
Solved Threads: 0
priyapratheep priyapratheep is offline Offline
Newbie Poster

Re: problem in importing package

 
0
  #3
Oct 30th, 2007
Originally Posted by lookof2day View Post
Are you still facing problem. Send your directory structure
Thank you for your replay...

The problem is solved.Problem is due to the reference in j2ee Reference settings

thank you

Priya
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: abinashsamal is an unknown quantity at this point 
Solved Threads: 0
abinashsamal abinashsamal is offline Offline
Newbie Poster
 
-1
  #4
Oct 17th, 2009
Originally Posted by priyapratheep View Post
Hi friends,

I am new bie to programming.This is my first project.so the tecnical terms i am not familier.

I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server

I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.

I imported EJB pakcges into jsp and created session
  1. HeadHome home = null;
  2. Head remote =null;

at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of

  1. Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
  2. --------------------------------------------------------------------------------
  3. 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
  4. probably occurred due to an error in /jspPages/testing.jsp line 8:
  5. <%@page import = "order.headsess.*" %>
  6.  
  7. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
  8. probably occurred due to an error in /jspPages/testing.jsp line 21:
  9. HeadHome home = null;
  10.  
  11. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
  12. probably occurred due to an error in /jspPages/testing.jsp line 22:
  13. Head remote =null;
  14.  
  15. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
  16. probably occurred due to an error in /jspPages/testing.jsp line 96:
  17. home =HeadUtil.getHome(env);
  18.  
  19.  
  20. --------------------------------------------------------------------------------
  21. Full compiler error(s):
  22. 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
  23. import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
  24. ^
  25. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
  26. symbol : class HeadHome
  27. location: class jsp_servlet._jsppages.__testing
  28. HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
  29. ^
  30. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
  31. symbol : class Head
  32. location: class jsp_servlet._jsppages.__testing
  33. Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
  34. ^
  35. C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
  36. symbol : variable HeadUtil
  37. location: class jsp_servlet._jsppages.__testing
  38. home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
  39. ^
  40. 4 errors
  41.  
  42.  
  43. --------------------------------------------------------------------------------
  44. Fri Oct 26 01:40:14 GMT+08:00 2007


pls help me to sort out my prob

May be you are using a incompatible version of java. Ex if u r using weblogic 8.1 then you should use jdk 1.4 and not java 5. Even if you are using jdk5, you have option to set the "Compiler Complience Level" in eclipse (if u r using eclipse).
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,189
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer
 
0
  #5
Oct 17th, 2009
Originally Posted by abinashsamal View Post
May be you are using a incompatible version of java. Ex if u r using weblogic 8.1 then you should use jdk 1.4 and not java 5. Even if you are using jdk5, you have option to set the "Compiler Complience Level" in eclipse (if u r using eclipse).
Congratz you just bumped 2 years old thread and added no valuable contribution. Sorry...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC