• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

import error in JSP, with J2EE

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I saw a message with a similar question, but that did not clear my doubt.
I have been running the reference implementation of J2EE and Apache server on win 2k. I have jsp code which gives the error
Error: 500
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPc:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:14: Class com.verity.search.Collections not found in import.
import com.verity.search.Collections;
^
c:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:15: Class com.verity.search.Collection not found in import.
import com.verity.search.Collection;
^
c:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:16: Class com.verity.search.VSearch not found in import.
import com.verity.search.VSearch;
^
3 errors
How does one solve this problem?
Thanks
Henna
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I would copy the foll. class files into the appropriate
folders under the WEB-INF/classes folder.
com.verity.search.Collections;
com.verity.search.Collection;
com.verity.search.VSearch;
or jar them up and copy the jar file to the WEB-INF/lib
folder of the application.
Let us know if you have already done this...
- satya
 
Henna Manick
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am working with sun's reference implementation of J2ee. I cannot find a WEB_INF folder. So I am not sure what else I can do in this case. I also don't know how I can get the class files from verity.com,
thanks
HEnna
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I wonder what you were trying to do with J2EE
when you got these errors?
I mean were you trying to do some tutorials or
deploy your own applications or what?
Could you spell out more details so we could understand
what you were trying to do....
- satya
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai all
You have to place all your classes in web-Inf/classes folder. which will be present by default.
If further problem present set classpath to your class folder and try running.
Bye
jayanthi
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you mean the RI J2EE app server, then you need to jar those classes up, and add them as a Library for the EAR file.

I have since un-installed the RI, so I'm not sure of the screen, but I think if you click the EAR file in the tree view, there is a button on the right hand side that is for Adding jar files to the Library.

Hopefully you can figure it out from there.
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic