944,138 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 2872
  • JSP RSS
Oct 25th, 2007
0

problem in importing package

Expand 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
JSP Syntax (Toggle Plain Text)
  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

JSP Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
priyapratheep is offline Offline
6 posts
since Oct 2007
Oct 30th, 2007
0

Re: problem in importing package

Are you still facing problem. Send your directory structure
Reputation Points: 16
Solved Threads: 11
Junior Poster in Training
lookof2day is offline Offline
83 posts
since Aug 2007
Oct 30th, 2007
0

Re: problem in importing package

Click to Expand / Collapse  Quote originally posted by lookof2day ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
priyapratheep is offline Offline
6 posts
since Oct 2007
Oct 17th, 2009
-1
Re: problem in importing package
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
JSP Syntax (Toggle Plain Text)
  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

JSP Syntax (Toggle Plain Text)
  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).
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abinashsamal is offline Offline
1 posts
since Oct 2009
Oct 17th, 2009
-1
Re: problem in importing package
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...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: inserting multiple selection from checkbox in to one column
Next Thread in JSP Forum Timeline: FileReader: file not found





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC